Fix KeyStatic: Add server function redirect

Add redirect to route all requests to the Netlify SSR server function.
This enables KeyStatic API routes and GitHub OAuth to work properly.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Buğra Canata
2026-01-17 20:27:56 +03:00
parent cebcfd4e78
commit 41a35c2a30
5 changed files with 12 additions and 6 deletions
+6
View File
@@ -8,3 +8,9 @@
for = "/_astro/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[redirects]]
from = "/*"
to = "/.netlify/build/entry.mjs"
status = 200
force = true