🔨 chore: add trpc mock.vite stub to stop Vite SPA warmup from traversing server router (#13022)

Made-with: Cursor
This commit is contained in:
Innei
2026-03-16 18:10:35 +08:00
committed by GitHub
parent d9388f2c31
commit ee8eade485

View File

@@ -0,0 +1,7 @@
/**
* Browser-only stub to stop Vite SPA warmup from traversing the server router graph.
* The real implementation is only valid in server and test environments.
*/
export const createCaller = () => {
throw new Error('`@/libs/trpc/mock` is server-only and unavailable in the Vite browser build.');
};