Issue
`wrangler.jsonc` `env.staging` (worker name `chittyconnect-staging`) declares the same routes as production:
```jsonc
"env": {
"staging": {
"name": "chittyconnect-staging",
...
"routes": [
{ "pattern": "connect.chitty.cc/", "zone_name": "chitty.cc" },
{ "pattern": "mcp.chitty.cc/", "zone_name": "chitty.cc" }
]
}
}
```
These routes are owned by the production worker (`chittyconnect`). When `wrangler deploy --env staging` runs, Cloudflare either:
- Refuses to re-claim the route (silent ignore), or
- Race-claims it from prod (potential outage).
Proposed fix
Replace with staging-specific routes, e.g.:
```jsonc
"routes": [
{ "pattern": "connect-staging.chitty.cc/", "zone_name": "chitty.cc" },
{ "pattern": "mcp-staging.chitty.cc/", "zone_name": "chitty.cc" }
],
"workers_dev": true
```
Or drop the `routes` block entirely and rely on `workers_dev: true` for staging (already set), accessing staging via `https://chittyconnect-staging.chittyos.workers.dev\`.
Discovered during #189 remediation
`npm run deploy:staging` partially succeeded (worker uploaded) but failed on queue consumer (separate issue, filed). The route conflict surfaced when reviewing wrangler config.
Issue
`wrangler.jsonc` `env.staging` (worker name `chittyconnect-staging`) declares the same routes as production:
```jsonc
"env": {
"staging": {
"name": "chittyconnect-staging",
...
"routes": [
{ "pattern": "connect.chitty.cc/", "zone_name": "chitty.cc" },
{ "pattern": "mcp.chitty.cc/", "zone_name": "chitty.cc" }
]
}
}
```
These routes are owned by the production worker (`chittyconnect`). When `wrangler deploy --env staging` runs, Cloudflare either:
Proposed fix
Replace with staging-specific routes, e.g.:
```jsonc
"routes": [
{ "pattern": "connect-staging.chitty.cc/", "zone_name": "chitty.cc" },
{ "pattern": "mcp-staging.chitty.cc/", "zone_name": "chitty.cc" }
],
"workers_dev": true
```
Or drop the `routes` block entirely and rely on `workers_dev: true` for staging (already set), accessing staging via `https://chittyconnect-staging.chittyos.workers.dev\`.
Discovered during #189 remediation
`npm run deploy:staging` partially succeeded (worker uploaded) but failed on queue consumer (separate issue, filed). The route conflict surfaced when reviewing wrangler config.