Worker Previews config model: branch-level var/secret overrides without touching prod

dinasaur_404 · x · 2026-09-22

Worker Previews' configuration model: previews don't inherit production settings. Define a base previews block on main with shared vars and secrets—each new preview inherits them; a single preview can override on its own branch (e.g., different database or test API key) without affecting prod or other previews. Base secret changes apply only to new previews, leaving active ones untouched. npx wrangler preview uses your current branch's config as source of truth.

Original post →

More from coding & agent

coding & agent channel →