mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Adds an explicit short-circuit at the top of HexclaveRebrandModal that returns no modal when any of the three NEXT_PUBLIC_STACK_IS_* dev flags is true — local emulator, remote development environment, or preview. These surfaces either auto-create throwaway users (preview) or seed a fixture admin (emulator/RDE). The rebrand notice would be friction for developers logging into local dev and meaningless for preview visitors who never used "Stack Auth" in the first place. Coincidentally these users are also filtered out today by signedUpAt < REBRAND_CUTOFF (fresh preview signups happen after the cutoff; a freshly-seeded emulator admin also signs up post-cutoff), but the explicit env-flag guard is more defensive — it stays correct if the cutoff is ever bumped forward for a test. Same three flags the protected layout already gates on (apps/dashboard/src/app/(main)/(protected)/layout-client.tsx:15-17). |
||
|---|---|---|
| .. | ||
| backend | ||
| dashboard | ||
| dev-launchpad | ||
| e2e | ||
| hosted-components | ||
| internal-tool | ||
| mcp | ||
| mock-oauth-server | ||
| oauth-mock-server | ||
| skills | ||