This commit is contained in:
33333-33333 2026-06-08 23:53:34 +09:00
commit 1c383282dd
29 changed files with 241 additions and 108 deletions

View file

@ -2,6 +2,24 @@
Open `index.html` in a browser.
Production uses the committed `dist/game.js` bundle. Edit source files under
`src/`, then run `npm install` once and `npm run build` after JavaScript
changes to regenerate the bundle.
## Static server cache setup
Serve `index.html`, the bundled JavaScript, and CSS with cache validation
instead of import query strings. This prevents stale files while keeping reloads
fast.
Use the example in `deploy/` for your HTTP server:
- nginx: include `deploy/nginx-cache.conf` inside the server block.
- Apache: copy or include `deploy/apache-cache.htaccess` from the site root.
- Caddy: adapt `deploy/Caddyfile-cache`.
After deploying, purge any CDN or reverse-proxy cache once.
## Current baseline
- Build, move, box-select, sell, and repair factory equipment during Build phase.