Dashboard › craft › Distillation
2cadec9c-7ba0-4e49-af5f-978a4fe0e7f1["be79c29a005b12567b211076fb4b1937","fb88458f5f0a64be8c30e29c6b64999e","6d896af0ad5fa2844403ef26c0ea0692","2801e08e3d8a3d87c5bd9b69d87cef3f","9a1b652bb923892bfe0fd9556bb89a86","87c8fa62f06ef7e10fbceba3cacfefda","a69a1f5db9a9800293f2ef2752a6e081"]
wrangler pages project create source: if --production-branch not provided in non-interactive mode, throws UserError "Missing production branch. Use --production-branch <branch> to specify the production branch for your Pages project." (no silent default in non-interactive mode). Request body sent to POST /accounts/${accountId}/pages/projects includes name, production_branch, and deployment_configs: { production: {...}, preview: {...} } populated from compatibility_flags/compatibility_date.git rev-parse --abbrev-ref HEAD) as suggestion, falling back to literal string "production" if not a git dir; non-interactive mode with no --production-branch errors rather than defaulting. Noted the git-detected branch depends on the repo (e.g., "main"), not a hardcoded value.apiToken from CLOUDFLARE_API_TOKEN, apiKey from CLOUDFLARE_API_KEY, apiEmail from CLOUDFLARE_EMAIL, userServiceKey from CLOUDFLARE_API_USER_SERVICE_KEY, baseURL from CLOUDFLARE_BASE_URL.getCloudflareAPITokenFromEnv reads CLOUDFLARE_API_TOKEN (deprecated name CF_API_TOKEN); getCloudflareGlobalAuthKeyFromEnv reads CLOUDFLARE_API_KEY (deprecated CF_API_KEY); getCloudflareGlobalAuthEmailFromEnv reads CLOUDFLARE_EMAIL (deprecated CF_EMAIL); getAuthDomainFromEnv reads WRANGLER_AUTH_DOMAIN defaulting to dash.staging.cloudflare.com if CLOUDFLARE_API_ENVIRONMENT="staging" else dash.cloudflare.com; derived WRANGLER_AUTH_URL/WRANGLER_TOKEN_URL/WRANGLER_REVOKE_URL built from the auth domain.