stack/apps/backend
Bilal Godil 7539fb9fbf fix(tests): stub canonical HEXCLAVE_* env names so dual-read doesn't shadow/conflict
The env-var rename added conflict-detecting dual-read (HEXCLAVE_* wins over
STACK_*, throws when both differ) and set HEXCLAVE_* to non-empty values in the
checked-in .env.development files. Tests that stubbed the legacy STACK_* twin
either triggered the conflict throw or were silently shadowed by the canonical
HEXCLAVE_* value loaded from .env.

Point the test env stubs at the canonical HEXCLAVE_* names (production reads keep
the legacy STACK_* argument and rely on dual-read):
- plan-entitlements.test.ts: HEXCLAVE_DISABLE_PLAN_LIMITS
- turnstile.tsx / users.tsx: HEXCLAVE_DISABLE_BOT_CHALLENGE,
  HEXCLAVE_ALLOW_SIGN_UP_ON_VISIBLE_BOT_CHALLENGE_FAILURE
- access-token-helpers.tsx: HEXCLAVE_ALLOW_SHARED_OAUTH_ACCESS_TOKENS
- url-targets.test.ts: NEXT_PUBLIC_HEXCLAVE_HOSTED_HANDLER_*

Also fix the turnstile dev-secret-key test to clear both twins so it actually
exercises the dev-key fallback instead of passing on a string coincidence.
2026-06-19 18:09:24 -07:00
..
prisma Detect conflicting Hexclave and Stack env vars (#1604) 2026-06-16 10:57:59 -07:00
scripts perf(platform-analytics): cut ClickHouse query peak memory (#1632) 2026-06-19 12:44:28 -07:00
src fix(tests): stub canonical HEXCLAVE_* env names so dual-read doesn't shadow/conflict 2026-06-19 18:09:24 -07:00
.env chore: rename STACK_* env vars to HEXCLAVE_* in env templates, with legacy dual-read 2026-06-11 16:23:50 -07:00
.env.development chore: rename STACK_* env vars to HEXCLAVE_* in env templates, with legacy dual-read 2026-06-11 16:23:50 -07:00
.eslintrc.cjs tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
.gitignore private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
instrumentation-client.ts feat(hexclave): PR 3 — native @hexclave/* source rename + delete dual-publish wiring (#1482) 2026-05-29 15:21:59 -07:00
LICENSE Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
next.config.mjs private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
package.json Merge branch 'dev' into rename-env-vars-hexclave 2026-06-19 17:02:18 -07:00
prisma.config.ts Detect conflicting Hexclave and Stack env vars (#1604) 2026-06-16 10:57:59 -07:00
tsconfig.json Fix lint 2026-02-27 09:59:26 -08:00
vercel.json External db sync (#1036) 2026-02-05 12:04:31 -08:00
vitest.config.ts fix: address review findings for the HEXCLAVE_* env rename 2026-06-11 16:47:19 -07:00
vitest.setup.ts Customizable ports (#962) 2025-10-20 15:24:47 -07:00