DashboardcraftAlways targets the production environme…

Always targets the production environment for Cloudflare deployments

Category: preference
Confidence: 1.00
ID: 01a03931-779b-7b83-a5e7-29da17fcc86a
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 1IcDjnCRwulqxvWEe
Created: 2026-07-15 14:52:01
Updated: 2026-08-25 13:52:18

Content

Craft Cloudflare Pages releases always deploy to production by passing productionBranch (default main) as wrangler pages deploy --branch <productionBranch>. Chose explicit --branch over omitting it because Wrangler infers Git context and Craft's temporary directory can select a preview; Wrangler has no equivalent --production or --environment flag. This Cloudflare branch is an environment selector, not Craft's Git release branch; any other branch creates a preview deployment.

Move to: