mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
Fix local-emulator e2e: use canonical HEXCLAVE_ var to avoid dual-read conflict
The dashboard build inlines both NEXT_PUBLIC_HEXCLAVE_* and NEXT_PUBLIC_STACK_* spellings and throws when they're set to different non-empty values. The job set the legacy NEXT_PUBLIC_STACK_IS_LOCAL_EMULATOR=true while the dashboard commits NEXT_PUBLIC_HEXCLAVE_IS_LOCAL_EMULATOR=false in .env.development, so every build crashed on the conflict check. Set the canonical NEXT_PUBLIC_HEXCLAVE_IS_LOCAL_EMULATOR=true instead: the job-level value overrides the committed default (process.env wins over dotenv) and leaves no conflicting STACK_ twin.
This commit is contained in:
parent
1ede37281f
commit
e78ec78471
@ -17,7 +17,12 @@ jobs:
|
||||
runs-on: ubicloud-standard-8
|
||||
env:
|
||||
NODE_ENV: test
|
||||
NEXT_PUBLIC_STACK_IS_LOCAL_EMULATOR: "true"
|
||||
# Use the canonical HEXCLAVE_ name: the dashboard commits a differing
|
||||
# NEXT_PUBLIC_HEXCLAVE_IS_LOCAL_EMULATOR=false in .env.development, and the
|
||||
# dual-read conflict check throws if both spellings are set to different
|
||||
# values. Setting the canonical name here overrides that committed default
|
||||
# (process.env wins over dotenv) without leaving a conflicting STACK_ twin.
|
||||
NEXT_PUBLIC_HEXCLAVE_IS_LOCAL_EMULATOR: "true"
|
||||
STACK_ENABLE_HARDCODED_PASSKEY_CHALLENGE_FOR_TESTING: yes
|
||||
STACK_DATABASE_CONNECTION_STRING: "postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:8128/stackframe"
|
||||
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user