diff --git a/vite.config.ts b/vite.config.ts index 20bdd52..9221825 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,17 @@ import vercel from "vite-plugin-vercel"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), vercel()], + plugins: [ + react(), + vercel({ + rewrites: [ + { + source: "/((?!api/.*).*)", + destination: "/index.html" + } + ] + }) + ], optimizeDeps: { exclude: ["lucide-react"], },