SSR build rewrites the checked-in index.html — build artifact committed as source #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:git checkout -- index.html'd away.index.htmlsilently serves old code to anyone using the static fallback path (python3 -m http.server).Options to weigh:
dist/index.html) and have the static fallback serve a committed snapshot updated deliberately.index.htmlcommitted but make the version stamp deterministic (only changes when a commit actually changes it).Related: the SSR bundle is also written to a shared
/tmp/_iife_bundle.js, which would collide if two checkouts build concurrently.