Cloudflare Worldedge community field guide

RETROSPECTIVE EDITION / 2025-07

Pages:preview と production の違いを明示する

build output、environment、preview、promotion、rollback が実際の deployment product です。

ISSUE
19 / 34
初回公開
SOURCE CHECK
Archive integrity

edition month は curriculum 上の位置です。本文は 32 本の retrospective edition の一つで、初回公開日は 2026-08-10、過去の公開・活動記録を装いません。

01 / DECISION

この primitive を選ぶ時

Cloudflare は新規プロジェクトを Workers で始めるよう案内しています。Pages は既存プロジェクト向けとし、branch ごとのループは Worker Previews で構成します。

02 / ARCHITECTURE

最小で説明可能な path を作る

Workers では build command と runtime version を固定し、previews ブロックで各 Preview を宣言し、KV・D1・R2 は別リソースに bind して、production は wrangler deploy で出します。既存 Pages プロジェクトは移行まで wrangler pages deploy dist を使います。

  1. 01contract を定義

    Cloudflare は新規プロジェクトを Workers で始めるよう案内しています。Pages は既存プロジェクト向けとし、branch ごとのループは Worker Previews で構成します。

  2. 02primitive を一つ追加

    Workers では build command と runtime version を固定し、previews ブロックで各 Preview を宣言し、KV・D1・R2 は別リソースに bind して、production は wrangler deploy で出します。既存 Pages プロジェクトは移行まで wrangler pages deploy dist を使います。

  3. 03failure evidence を残す

    preview URL、generated asset、canonical link、redirect、rollback を試し、production で同じ smoke check を再実行します。

03 / REPRODUCE

confidence の前に evidence

preview URL、generated asset、canonical link、redirect、rollback を試し、production で同じ smoke check を再実行します。

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

04 / BOUNDARY

Production boundary

build 成功だけでは runtime integration、secret、redirect、header、custom-domain behavior は証明できません。Preview は production 設定を継承せず、KV・D1・R2 など account 単位のリソースは個別に bind した時だけ分離されます。

05 / FIRST-PARTY SOURCES

一次資料を authoritative に保つ

product behavior、limit、pricing、availability は変わります。実行前に source を再確認してください。

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/