bake build infra: nginx.conf (deterministic /ship)

This commit is contained in:
2026-08-21 20:41:18 +00:00
parent bca343d7c8
commit 328f429ea0
+17
View File
@@ -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";
}
}