From 328f429ea0cb15b007ffa9bdb1fe7dd655ebc045 Mon Sep 17 00:00:00 2001 From: jyswee Date: Fri, 21 Aug 2026 20:41:18 +0000 Subject: [PATCH] bake build infra: nginx.conf (deterministic /ship) --- 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"; + } +}