Atomic Static Swaps on Cloudflare Workers

2026-09-11

Direct answer

Build locally, validate, then upload a full asset set to Workers static assets so visitors never see a mixed old/new tree.

Practical shape

  1. npm run gate — typecheck/build/validate
  2. wrangler deploy — atomic-ish publish of the new asset manifest
  3. Purge only when a previously 404’d path was cached

No nginx in this stack. Origin is Workers + Cloudflare DNS.