From 238c43c7d6b8c8bf7bd0f8555077eccefcc506a5 Mon Sep 17 00:00:00 2001 From: Elliot Braem Date: Sun, 22 Dec 2024 12:27:48 -0600 Subject: [PATCH] non api routes --- vite.config.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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"], },