chore(deploy): explicit named deploy scripts + dry-run variants#19
Open
whoabuddy wants to merge 1 commit into
Open
chore(deploy): explicit named deploy scripts + dry-run variants#19whoabuddy wants to merge 1 commit into
whoabuddy wants to merge 1 commit into
Conversation
Adds deploy:staging, deploy:production, and dry-run variants per cloudflare-bill-audit-2026-04.md Phase -1 to prevent accidental top-level dev deploys during the worker-logs sunset. Updates the deployment table in CLAUDE.md to point to the explicit scripts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
worker-logs-production | b7a12bd | May 01 2026, 09:33 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
worker-logs-staging | b7a12bd | May 01 2026, 09:34 PM |
There was a problem hiding this comment.
Pull request overview
Adds explicit, environment-named deployment scripts (plus dry-run variants) to reduce the chance of deploying the wrong Cloudflare Workers configuration, and updates fork documentation to reflect the safer workflow.
Changes:
- Add
deploy:staging/deploy:productionscripts anddeploy:dry-run*variants topackage.json. - Update
CLAUDE.mddeployment environment table to document the new commands and include a safety note about barenpm run deploy.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Introduces explicit deploy + dry-run scripts for staging/production via Wrangler --env and --dry-run. |
| CLAUDE.md | Updates deployment command documentation to steer operators toward explicit environment deploy commands. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| | Staging | logs.aibtc.dev | `npm run deploy:staging` | `npm run deploy:dry-run:staging` | | ||
| | Production | logs.aibtc.com | `npm run deploy:production` | `npm run deploy:dry-run:production` | | ||
|
|
||
| > **Safety:** the bare `npm run deploy` script targets the top-level dev config, not staging or production. During the worker-logs sunset (see `cloudflare-bill-audit-2026-04.md`), prefer the explicit `deploy:staging` / `deploy:production` scripts so no one accidentally ships a config-less deploy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deploy:staging,deploy:production, and matchingdeploy:dry-runvariants so deploys go through explicitly named environments.Why
Per
cloudflare-bill-audit-2026-04.mdPhase -1: while sunsettingworker-logs, the barenpm run deployscript targets the top-level dev config rather than staging/production. Named scripts make the intent explicit and let dry-runs validate the right config before a real deploy.Test plan
npm run deploy:dry-run:stagingbuilds the staging config without deployingnpm run deploy:dry-run:productionbuilds the production config without deployingdeploy:productionrun🤖 Generated with Claude Code