apiVersion: v1 kind: ConfigMap metadata: name: docs-nginx namespace: loom data: default.conf: | server { listen 8080; # git-sync keeps `current` pointed at the checked-out worktree, so this # path follows a new commit without nginx restarting. root /site/current/dist; index index.html; # Astro emits directory-style URLs: /bedrock/starting/ -> .../index.html location / { try_files $uri $uri/ $uri/index.html =404; } # Hashed assets are immutable; pages are not, and a cached page is how a # corrected document keeps reading as true. location /_astro/ { add_header Cache-Control "public, max-age=31536000, immutable"; } error_page 404 /404.html; }