{
  "id": "fix.wrangler4-pages-create-force",
  "version": 1,
  "category": "engineering_fix",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Wrangler 4.x / Cloudflare Pages",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1811352000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "contentOrigin": "HUMAN_ORIGINAL",
  "aiModel": "",
  "summaryEn": "Resolves Wrangler v4 delegating `pages project create` to Workers when creating a classic static Cloudflare Pages project.",
  "match": {
    "field": "command",
    "containsAny": [
      "wrangler pages project create"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Cloudflare Wrangler 4.x CLI deploying pure static Pages sites",
    "symptom": "`wrangler pages project create` delegates to Workers and aborts with missing static directory detection error.",
    "rootCause": "Wrangler v4 routes new `pages project create` commands to Workers by default unless classic Pages creation is explicitly requested.",
    "verifiedFix": "Pass `--force` once on `wrangler pages project create {NAME} --production-branch main --force`, then run subsequent `wrangler pages deploy` commands WITHOUT `--force`.",
    "verificationCheck": "Confirm project creation prints the `.pages.dev` domain and `wrangler pages deploy {DIR} --project-name {NAME}` returns HTTP 200.",
    "commandPattern": "wrangler pages project create {PROJECT_NAME} --production-branch main --force",
    "commandRisk": "REVERSIBLE",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  },
  "playbookSha256": "a460f0289cc48bdd67bbb2e863af5fc2b5828f13b6a2ecb3fc98b68db0634ce0",
  "snapshotSha256": "116114a19ef52fd932a20216d0c0a4136c3ef2489839d44e6e031683fb594cd2",
  "advisoryOnly": true
}
