From 5786500089d073afd758c5c0f5b3d59424d4e567 Mon Sep 17 00:00:00 2001 From: jyswee Date: Fri, 21 Aug 2026 22:28:42 +0000 Subject: [PATCH] bake build infra: nginx.conf (deterministic /ship for forks) --- nginx.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..ee72d86 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,17 @@ +server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + + # SPA fallback — client-side routing (react-router BrowserRouter) + location / { + try_files $uri $uri/ /index.html; + } + + # Long-cache hashed assets + location /assets/ { + expires 1y; + add_header Cache-Control "public, immutable"; + } +}