| 1 | import { prismaVitePlugin } from "@prisma-next/vite-plugin-contract-emit"; |
| 2 | import { tanstackStart } from "@tanstack/react-start/plugin/vite"; |
| 3 | import viteReact from "@vitejs/plugin-react"; |
| 4 | import { nitro } from "nitro/vite"; |
| 5 | import { defineConfig } from "vite"; |
| 6 | |
| 7 | export default defineConfig({ |
| 8 | server: { port: Number(process.env.PORT ?? "3000") }, |
| 9 | plugins: [ |
| 10 | tanstackStart({ router: { quoteStyle: "double", semicolons: true } }), |
| 11 | nitro(), |
| 12 | prismaVitePlugin("prisma-next.config.ts", { logLevel: "silent" }), |
| 13 | // React's Vite plugin must come after TanStack Start. |
| 14 | viteReact(), |
| 15 | ], |
| 16 | }); |