Repository navigation
docs: correct the fast-deploy contract - #552
Merged
Merged
Conversation
JonasJesus42
force-pushed
the
docs/fast-deploy-contract
branch
from
September 29, 2026 17:45
6443e69 to
7bfb8b1
Compare
Four things in circulation were wrong or stale: - CLAUDE.md said the keys were `decofile:current` + `index:revision`. Neither exists. Keys are per deployment id — `decofile:<id>`, `index:revision:<id>`, `index:live`, `index:deployments` — and that is not cosmetic: a single mutable pointer would feed new content to still-live old code during a rolling deploy. - docs/fast-deploy.md documented the config as `wrangler.toml`. The tooling reads and writes `wrangler.jsonc`; nothing emits toml. - Both claimed the bundled snapshot is always the KV fallback. In bundle-stub mode it is not — `ensureBlocksHydrated` fails loudly instead of serving an empty site the edge would cache. That mode, why it is gated on the pipeline declaring it seeds, and the memory numbers behind it now have a section. - The "module-level loadRedirects won't see KV updates" limitation no longer applies to the framework's own redirects; workerEntry rebuilds the map on a revision change. It still applies to site code that hoists its own. Also points the site-prerequisites list at the automation that now covers it (SITE_CREATE + the migration scaffold, D7) and records the `setupTanstackFastDeploy()` requirement, which was undocumented and is the difference between a publish working and silently writing nothing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
JonasJesus42
force-pushed
the
docs/fast-deploy-contract
branch
from
September 29, 2026 19:05
7bfb8b1 to
586fbf0
Compare
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.
Quatro coisas em circulação estavam erradas ou desatualizadas.
1. As chaves de KV.
CLAUDE.mddiziadecofile:current+index:revision. Nenhuma das duas existe. As chaves são por deployment id:decofile:<id>,index:revision:<id>,index:live,index:deployments(packages/blocks/src/cms/blockSource.ts:113-145). E isso não é cosmético — um ponteiro único mutável entregaria conteúdo novo para código velho ainda no ar durante um rolling deploy.2.
wrangler.toml. Odocs/fast-deploy.mddocumentava a config em toml. O tooling lê e escrevewrangler.jsonc; nada emite toml (o parser toml existe só para repos legados).3. "O snapshot bundlado é o fallback de KV". No modo bundle-stub não é —
ensureBlocksHydratedfalha alto em vez de servir um site vazio que o edge cacharia. Esse modo, os números de memória por trás dele (três cópias do decofile por isolate, ~27 MB para um decofile de 9.2 MB contra teto de 128 MB sem botão de GC) e o porquê de ser gated na pipeline declarar que semeia agora têm seção própria.4.
loadRedirectsmodule-level. Listado como limitação não-fast-deployável; oworkerEntry.ts:2082-2097já rechaveia o mapa de redirects por revisão. Só vale para código de site que iça o próprioloadRedirects(loadBlocks()).De quebra: os pré-requisitos de site agora apontam para a automação que passou a cobri-los (
SITE_CREATE+ o scaffold de migração, D7), e o requisito de chamarsetupTanstackFastDeploy()— que não estava documentado em lugar nenhum e é a diferença entre um publish funcionar e escrever nada em silêncio.Fecha a pilha: #548 → #549 (+ infra#333) → #550 → #551 → este.
🤖 Generated with Claude Code
Summary by cubic
Corrects the fast-deploy docs in
CLAUDE.mdanddocs/fast-deploy.mdto match the actual tooling contract.decofile:<id>,index:revision:<id>,index:live,index:deployments), never a single mutable pointer that would feed new content to old code mid-rollout.wrangler.jsonc; nothing emits toml, though it is still parsed for legacy repos.ensureBlocksHydratedfails loudly rather than serving an empty site, and the mode is gated on the pipeline declaring it seeds the KV key before activation.loadRedirectslimitation no longer applies to the framework's own redirects; it only affects site code that hoists its ownloadRedirects(loadBlocks()).setupTanstackFastDeploy()call is recorded as required.Merge after #550 and #551 — the prerequisites section references D7,
SITE_CREATE, and the scaffoldedsetupTanstackFastDeploy()call, which only exist once those land.Written for commit 586fbf0. Summary will update on new commits.
Merge after #550 and #551 — the prerequisites section references D7,
SITE_CREATEand the scaffoldedsetupTanstackFastDeploy()call, which only exist once those land.