From 39b4bfd7f3bd30d7daa0edd1b1d76262b47fd3f7 Mon Sep 17 00:00:00 2001 From: Aravind R Date: Thu, 4 Jun 2026 15:35:33 +0530 Subject: [PATCH] fix content issue --- nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index cec7690..64575b6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,8 +11,9 @@ http { location / { root /usr/share/nginx/html; index index.html index.htm; - # This line forces Nginx to pass routing back to React Router - try_files $uri $uri/ /index.html; + # Next.js static export creates page.html (e.g. contact.html) for routes. + # We check $uri.html to allow clean URLs without the .html extension. + try_files $uri $uri.html $uri/ /404.html; } } }