Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,14 @@ This repo is a fork of [whoabuddy/worker-logs](https://github.com/whoabuddy/work

### Deployment Environments

| Environment | Domain | Deploy Command |
|-------------|--------|----------------|
| Local dev | localhost:8787 | `npm run dev` |
| Staging | logs.aibtc.dev | `npm run deploy -- --env staging` |
| Production | logs.aibtc.com | `npm run deploy -- --env production` |
| Environment | Domain | Deploy Command | Dry Run |
|-------------|--------|----------------|---------|
| Local dev | localhost:8787 | `npm run dev` | — |
| Top-level (dev only) | workers.dev preview | `npm run deploy` | `npm run deploy:dry-run` |
| 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.

### Syncing with upstream

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"scripts": {
"dev": "npm run wrangler -- dev --ip 0.0.0.0",
"deploy": "npm run wrangler -- deploy",
"deploy:staging": "npm run wrangler -- deploy --env staging",
"deploy:production": "npm run wrangler -- deploy --env production",
"deploy:dry-run": "npm run wrangler -- deploy --dry-run",
"deploy:dry-run:staging": "npm run wrangler -- deploy --env staging --dry-run",
"deploy:dry-run:production": "npm run wrangler -- deploy --env production --dry-run",
"cf-typegen": "npm run wrangler -- types",
"wrangler": "set -a && . ./.env && set +a && npx wrangler",
"test": "vitest run",
Expand Down