From 65940c6f57f5b43b19fa1cc3aa3f1410bb38ad45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrew=20Beveridge=20=E2=98=84=EF=B8=8F?= Date: Thu, 29 Oct 2026 10:34:54 -0400 Subject: [PATCH] fix(local-stack): decide partner calls go to local decide, never production (#1235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The local stack's backend env had no `KARAOKE_DECIDE_API_URL`, so gen's decide partner client (account deletion) used the production default and sent `DELETE /api/partner/gen/users` to decide.nomadkaraoke.com. Production answered 401, because the local secret differs, so nothing was touched. It surfaced in nomad-mobile's E2E account-1 flow. The fix defaults it to decide's local stack on :8030, and callers can still override it. Script only, no runtime code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Summary by CodeRabbit * **Configuration** * The local environment can now use a custom karaoke decision service address, with a default address provided when none is configured. Co-authored-by: Claude Opus 5.5 --- scripts/local-stack.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/local-stack.sh b/scripts/local-stack.sh index 25d573b3..432b3183 100755 --- a/scripts/local-stack.sh +++ b/scripts/local-stack.sh @@ -57,6 +57,7 @@ BOARD_MAX_SIGNUPS_PER_IP=100000 LOGIN_CODES_PER_IP_PER_HOUR=100000 KJBOX_PARTNER_SECRET=${KJBOX_PARTNER_SECRET:-local-stack-secret} DECIDE_GEN_PARTNER_SECRET=${DECIDE_GEN_PARTNER_SECRET:-local-stack-secret} +KARAOKE_DECIDE_API_URL=${KARAOKE_DECIDE_API_URL:-http://127.0.0.1:8030} POSTMARK_SERVER_TOKEN= STRIPE_SECRET_KEY= EOF