Skip to content

Commit

Permalink
rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 22, 2024
1 parent 546b1ec commit 9df9b7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"tailwindcss": "^3.4.1",
"typescript": "^5.5.3",
"typescript-eslint": "^8.3.0",
"vike": "^0.4.210",
"vite": "^5.4.2",
"vite-plugin-vercel": "^9.0.3"
}
Expand Down
Empty file added vercel.json
Empty file.
23 changes: 8 additions & 15 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import vercel from "vite-plugin-vercel";
import ssr from "vike/plugin";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
ssr({
prerender: true,
}),
vercel({
rewrites: [
{
source: "/((?!api/.*).*)",
destination: "/index.html"
}
]
})
],
plugins: [react(), vercel({
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
})],
optimizeDeps: {
exclude: ["lucide-react"],
},
Expand Down

0 comments on commit 9df9b7a

Please sign in to comment.