diff --git a/nginx.config b/nginx.config new file mode 100644 index 0000000..c6aa911 --- /dev/null +++ b/nginx.config @@ -0,0 +1,19 @@ +events {} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + # 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; + } + } +}