Cloudflare Worldedge community field guide

RETROSPECTIVE EDITION / 2025-07

Pages: make preview and production disagree loudly

Build output, environment, preview, promotion, and rollback form the real deployment product.

ISSUE
19 / 34
FIRST PUBLISHED
SOURCE CHECKED
Archive integrity

The edition month is a curriculum position. This article is one of the 32 retrospective editions first published on 2026-08-10, and is not presented as a historical release or past activity.

01 / DECISION

When this primitive earns a place

Cloudflare now says to start new projects with Workers, so keep Pages for existing projects and get the per-branch loop from Worker Previews instead.

02 / ARCHITECTURE

Build the smallest defensible path

On Workers, pin build commands and runtime versions, declare each Preview in the previews block, bind KV, D1, and R2 to separate resources, then deploy production with wrangler deploy. On an existing Pages project, keep wrangler pages deploy dist until it migrates.

  1. 01Name the contract

    Cloudflare now says to start new projects with Workers, so keep Pages for existing projects and get the per-branch loop from Worker Previews instead.

  2. 02Add one primitive

    On Workers, pin build commands and runtime versions, declare each Preview in the previews block, bind KV, D1, and R2 to separate resources, then deploy production with wrangler deploy. On an existing Pages project, keep wrangler pages deploy dist until it migrates.

  3. 03Capture failure evidence

    Test the preview URL, generated asset set, canonical links, redirects, and rollback; repeat the same smoke checks on production.

03 / REPRODUCE

Evidence before confidence

Test the preview URL, generated asset set, canonical links, redirects, and rollback; repeat the same smoke checks on production.

npx wrangler preview   # existing Pages project: npx wrangler pages deploy dist

04 / BOUNDARY

The production boundary

A successful build does not prove runtime integrations, secrets, redirects, headers, or custom-domain behavior. Previews do not inherit production settings, and account-level resources such as KV, D1, and R2 are only isolated when you bind each Preview to its own resource.

05 / FIRST-PARTY SOURCES

Keep first-party sources authoritative

Product behavior, limits, pricing, and availability can change. Re-check these sources before acting.

01 / SOURCECloudflare Pageshttps://developers.cloudflare.com/pages/02 / SOURCEWorker Previewshttps://developers.cloudflare.com/workers/previews/03 / SOURCEMigrate from Pages to Workershttps://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/