Repository navigation
[M11] Render static site deploy (M11.10) - #100
Merged
Merged
Conversation
Story M11.10. render.yaml publishes web/dist as a static site with immutable caching for hashed assets and no-cache for the page and the engine source, and redeploys on changes to web/, src/ledgerlog/ or the README. tests/deploy.spec.ts checks the blueprint and fails if a full visit contacts any origin but the site itself and Fontshare. The roadmap ticks Milestone 11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The demo is ready to deploy on Render as a static site, and Milestone 11 is complete.
Changes
render.yaml(Blueprint): a static runtime,rootDir: web,npm ci && npm run build, publishingdist. Caching:Cache-Control: public, max-age=31536000, immutableon/assets/*(Vite-hashed), andno-cacheon/index.html,/and/engine/*. The engine source is copied in unhashed, and the page claims to run this commit's engine.NODE_VERSION=22matches CI. AbuildFilterredeploys onweb/**,src/ledgerlog/**andREADME.md, because the build copies the engine source and parses the README's bench tables.web/tests/deploy.spec.ts:docs/ROADMAP.md: the remaining Milestone 11 boxes are ticked.Acceptance criteria
render.yamldefines the static site: rootweb, buildnpm ci && npm run build, publishdist, long cache for hashed assets, no-cache forindex.htmlvite previewof the production build; a test asserts no requests to other origins apart from the font providerrender.yaml) and run locallydocs/ROADMAP.mdticks Milestone 11Verified locally (macOS)
node scripts/bench-data.mjs --check: bench.json still matches the README after the README edit.console.spec.tskeyboard test, which pressesControl+A. That doesn't select all on macOS, so it is a Mac-only failure; it passes on Linux CI.pytest: 1304 passed, 6 skipped. Ruff is clean.Connecting the Render account is for the owner, as the story says.
Closes #88
🤖 Generated with Claude Code
https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG