Skip to content
Merged
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
7 changes: 5 additions & 2 deletions relay/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,16 @@ ALLOWED_BROWSER_ORIGINS = "https://attn.sh,https://staging.attn.sh"

# Staging deploys to a DISTINCT worker so `wrangler deploy --env staging` can
# NEVER overwrite the production "attn-relay" worker or take its relay.attn.sh
# route. Named-environment routes are not inherited from the top level, so
# staging is workers.dev-only. Durable Object namespaces are per-worker, so
# route. CAUTION: wrangler v3 DOES inherit top-level `routes` into named
# environments (observed 2026-06-10: a staging deploy attached relay.attn.sh
# to attn-relay-staging) — the explicit `routes = []` below opts staging out,
# keeping it workers.dev-only. Durable Object namespaces are per-worker, so
# staging rooms are isolated from prod. (The R2 bucket is shared by name, but
# blobs are keyed by roomId, so staging + prod objects never collide.)
[env.staging]
name = "attn-relay-staging"
workers_dev = true
routes = []

[env.staging.vars]
# vars are NOT inherited by named environments, so the full set is repeated
Expand Down
Loading