← ClaudeAtlas

deploy-wranglerlisted

Use when changing deploy scripts, running wrangler deploys, or verifying which branch and environment a production deploy targets in this repository.
alexio777/learn-on-the-job · ★ 0 · DevOps & Infrastructure · score 65
Install: claude install-skill alexio777/learn-on-the-job
# Deploy Wrangler Map of how this repo deploys to Cloudflare Workers — flags, branch rules, and the gotchas that memory once got wrong. ## Procedure 1. Read `scripts/deploy.sh` and the `deploy` script in `package.json` (source of truth). 2. Confirm target environment (preview vs production) before advising commands. 3. Production deploys must pin `--branch=main` — do not suggest a bare preview deploy when the user asked for production. ## File / command facts | Path | Fact | |------|------| | `scripts/deploy.sh` | Production path requires `--branch=main` | | `package.json` → `deploy` | Wrapper around the script above | | `wrangler.toml` | Worker name and route config | ## Gotchas | What bit | Why | What to do | |----------|-----|------------| | "Deploy only hits preview" | Historical: script later added main branch pin | Trust live script, not old memory | ## Checklist - [ ] Live `scripts/deploy.sh` still matches every claim above - [ ] Description still triggers on deploy / wrangler / production URL tasks