medieval-kit/scripts
CRT f62975f948 Hash the site's bundles, and take the ops notes out of the README
Two corrections, and the first was a bug I had just written.

`vercel.json` served `/viewer.js` and `/viewer.css` with a year of immutable
caching, and those names carry no content hash — they are pinned in the vite
config. Immutable caching on a fixed name means a returning visitor is handed
the bundle they already have, for a year, no matter how many times the site is
rebuilt. The rule and the filenames were written a few minutes apart and
contradicted each other.

So the bundles are hashed now, which makes the caching correct rather than
wrong, and the cost is exactly the thing the rule creates: nothing downstream
may name them literally. `build-artifact.ts` finds them by pattern. So does
`build-site.ts` — whose own first version listed `viewer.js` by name in its
size report, and fell over on the very build that introduced the hash. The
mistake and its consequence landed in the same commit.

The cache rules now live in a `_headers` file written into the output, where
the host looks for them: a year on the hashed bundles, and revalidation on the
HTML, which must NOT be cached that way — it is what points at the current
hash, and a stale copy of it pins a visitor to a build that no longer exists.

Second: the README had grown a hosting comparison — which providers are free
with a private repository, what GitHub Pages costs. None of that belongs in a
README. It is a public-facing document about a model registry, read by people
deciding whether to install it, and my deployment arithmetic is neither their
business nor true for their situation. What stays is the part that is about
this project: the command, what the output is, and that nothing is fetched at
run time. `vercel.json` goes with it, since it was config for a host this
project does not use.
2026-08-27 06:27:29 +00:00
..
audit.ts Enforce "nothing floats", and rebuild the barrel from a reference photo 2026-08-21 12:23:11 +00:00
build-artifact.ts Hash the site's bundles, and take the ops notes out of the README 2026-08-27 06:27:29 +00:00
build-site.ts Hash the site's bundles, and take the ops notes out of the README 2026-08-27 06:27:29 +00:00
catalog-table.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
check-docs.ts Check the documentation against the kit it describes 2026-08-26 18:37:18 +00:00
export-glb.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
probe-bench.ts Take the shoulder off the bench's feet 2026-08-26 19:02:35 +00:00
probe-tree.ts Add the oak 2026-08-23 12:47:21 +00:00
reference-shots.ts Add the reference-shot generator 2026-08-21 12:45:58 +00:00
render.ts Lay the whole-kit scene out square, and let it be the picture 2026-08-26 18:50:26 +00:00
support.ts Enforce "nothing floats", and rebuild the barrel from a reference photo 2026-08-21 12:23:11 +00:00
verify-glb.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
verify-model.ts Add the market stall 2026-08-26 20:17:02 +00:00
zfight.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00