Skip to content

Commit

Permalink
non api routes
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 22, 2024
1 parent 091d45c commit 238c43c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
Expand Down

0 comments on commit 238c43c

Please sign in to comment.