fix: update nginx for proper Next.js deep linking support

- Prioritize .html in try_files to correctly resolve static export routes
This commit is contained in:
2026-02-23 02:36:54 +01:00
parent d2dcd2ca9f
commit d1c95254b0

View File

@@ -41,9 +41,9 @@ http {
add_header Cache-Control "public, immutable";
}
# SPA fallback
# SPA fallback for Next.js static export
location / {
try_files $uri $uri/ /index.html;
try_files $uri $uri.html $uri/ /index.html;
}
# Health check endpoint