From d1c95254b099e52f4eba0e7b80e5ae64cf4050b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 23 Feb 2026 02:36:54 +0100 Subject: [PATCH] fix: update nginx for proper Next.js deep linking support - Prioritize .html in try_files to correctly resolve static export routes --- nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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