Skip to content

Commit 3b10a92

Browse files
committed
adding fix to solve netlify.toml rule error
1 parent 75c2acc commit 3b10a92

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

netlify.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
command = "npm run build"
33
publish = "dist/client"
44

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
5+
# Forward all routing requests to Vike's serverless rendering function.
6+
# force = false ensures Netlify checks for real static files (like /assets/*)
7+
# on disk first. It only redirects to the function if the file doesn't exist.
118
[[redirects]]
129
from = "/*"
13-
to = "/.netlify/functions/render" # Change this if your function is named differently (e.g., /_api, /server)
14-
status = 200
10+
to = "/.netlify/functions/render"
11+
status = 200
12+
force = false

0 commit comments

Comments
 (0)