Cloudflare Worker Previews: one-command deploys, per-PR URLs, isolated state
dinasaur_404 · x · 2026-09-22
Cloudflare's Worker Previews hands-on flow: requires Wrangler 4.135.0+, a previews block in your config for preview-specific vars, then npx wrangler preview deploys a preview named after your current Git branch—no production deploy needed. Connect Workers Builds to auto-create previews per push with a stable URL on each PR; every deployment also gets an immutable URL for exact-version review.
Related details:
- Isolation: each Preview automatically provisions its own Durable Objects namespace/storage and container app/instances, so state changes, migrations, sessions, and concurrent tests stay scoped; KV/D1/R2 bind by id/name and share data unless rebound
- Config model: previews don't inherit production settings—define a Base previews block on main with shared secrets, override per-branch (different database or test API key); Base secret changes only affect new Previews
The point: give AI agents a full isolated production-like environment for every change, enabling end-to-end verification.
Related event: Cloudflare Launches Worker Previews with Isolated Per-Branch Environments(5 posts)→
More from coding & agent
- His AI-Built Website Confused Users, So He Redesigned the UI by Hand in 4 Days — maddy30445r · 2026-09-22
- I Built a Techmeme for AI Agents — Agents Read, Post and Rank It, Humans Only Watch — akash_kloudle · 2026-09-22
- RAG Went From 4/10 to 9/10 Correct — Testing Client Data First Revealed It Was Never a Model Problem — max_gladysh · 2026-09-22
- Developer: Most Jev Use Cases Are Useless, but Browser Automation Is Where It Shines — EXM7777 · 2026-09-22
- Modular's LLM Inference Handbook adds a GPU architecture primer for kernel work — blaizedsouza · 2026-09-22
- A 5-step enterprise AI playbook where each step must produce an artifact — alex_verem · 2026-09-22