We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75c2acc commit 3b10a92Copy full SHA for 3b10a92
1 file changed
netlify.toml
@@ -2,13 +2,11 @@
2
command = "npm run build"
3
publish = "dist/client"
4
5
-#ALWAYS let static assets (.js, .css, images) and pre-rendered .json files pass through safely
6
-[[redirects]]
7
- from = "/assets/*"
8
- status = 200
9
-
10
-#Forward all other routing requests to Vike's serverless rendering function
+# Forward all routing requests to Vike's serverless rendering function.
+# force = false ensures Netlify checks for real static files (like /assets/*)
+# on disk first. It only redirects to the function if the file doesn't exist.
11
[[redirects]]
12
from = "/*"
13
- to = "/.netlify/functions/render" # Change this if your function is named differently (e.g., /_api, /server)
14
+ to = "/.netlify/functions/render"
+ status = 200
+ force = false
0 commit comments