We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed07a1 commit b87cd8aCopy full SHA for b87cd8a
packages/start/src/config/index.ts
@@ -192,6 +192,7 @@ const routersSchema = z.object({
192
api: z
193
.object({
194
entry: z.string().optional(),
195
+ vite: viteSchema.optional(),
196
})
197
.optional(),
198
@@ -314,7 +315,7 @@ export function defineConfig(
314
315
routes: tsrFileRouter({ tsrConfig, apiBase }),
316
plugins: () => [
317
...(opts.vite?.plugins?.() || []),
- ...(opts.routers?.ssr?.vite?.plugins?.() || []),
318
+ ...(opts.routers?.api?.vite?.plugins?.() || []),
319
// serverTransform({
320
// runtime: '@tanstack/start/server-runtime',
321
// }),
0 commit comments