From d4d577d64d20fa11e331a4d356d93af02c02fbcf Mon Sep 17 00:00:00 2001 From: gcharang <21151592+gcharang@users.noreply.github.com> Date: Fri, 9 Oct 2026 13:26:08 +0400 Subject: [PATCH] fix(backend): give the rate limiters account-unique namespace IDs Rate-limit namespace IDs are account-scoped. 1001 was also bound by mailflare and wang-fei-voice-studio, and 1002 by mailflare-nomixhq, so their counters and limit configs shared a space. Production moves to 52001 and staging to 52002; no other Worker in the account uses either. Counters reset once on deploy. Co-Authored-By: Claude Opus 5.5 --- apps/backend/wrangler.jsonc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/wrangler.jsonc b/apps/backend/wrangler.jsonc index 155f022..d450aa0 100644 --- a/apps/backend/wrangler.jsonc +++ b/apps/backend/wrangler.jsonc @@ -157,7 +157,7 @@ "ratelimits": [ { "name": "RATE_LIMITER", - "namespace_id": "1001", + "namespace_id": "52001", "simple": { "limit": 300, "period": 60 } } ], @@ -237,7 +237,7 @@ "ratelimits": [ { "name": "RATE_LIMITER", - "namespace_id": "1002", + "namespace_id": "52002", "simple": { "limit": 300, "period": 60 } } ],