diff --git a/nginx.conf b/nginx.conf index 18b81ce..1bdb588 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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