SSR build rewrites the checked-in index.html — build artifact committed as source #4

Closed
opened 2026-07-20 18:38:55 +00:00 by necrogami · 0 comments
Contributor

Every dev-server start runs the SSR build, which re-stamps the git SHA/version into the checked-in index.html (4-line diff), dirtying the tree. Documented as a caveat in the README (v30.44 doc pass), but the underlying design is the issue:

  • Every dev run creates diff noise that has to be git checkout -- index.html'd away.
  • A stale committed index.html silently serves old code to anyone using the static fallback path (python3 -m http.server).

Options to weigh:

  1. Build to an untracked path (e.g. dist/index.html) and have the static fallback serve a committed snapshot updated deliberately.
  2. Keep index.html committed but make the version stamp deterministic (only changes when a commit actually changes it).
  3. Accept the noise and gitignore-assume-unchanged (worst option — hides real changes).

Related: the SSR bundle is also written to a shared /tmp/_iife_bundle.js, which would collide if two checkouts build concurrently.

Every dev-server start runs the SSR build, which re-stamps the git SHA/version into the checked-in `index.html` (4-line diff), dirtying the tree. Documented as a caveat in the README (v30.44 doc pass), but the underlying design is the issue: - Every dev run creates diff noise that has to be `git checkout -- index.html`'d away. - A stale committed `index.html` silently serves old code to anyone using the static fallback path (`python3 -m http.server`). Options to weigh: 1. Build to an untracked path (e.g. `dist/index.html`) and have the static fallback serve a committed snapshot updated deliberately. 2. Keep `index.html` committed but make the version stamp deterministic (only changes when a commit actually changes it). 3. Accept the noise and gitignore-assume-unchanged (worst option — hides real changes). Related: the SSR bundle is also written to a shared `/tmp/_iife_bundle.js`, which would collide if two checkouts build concurrently.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
og_arist0tle/dark-spire#4
No description provided.