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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user