init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
11
constants/keys.ts
Normal file
11
constants/keys.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { isEnvTruthy } from '../utils/envUtils.js'
|
||||
|
||||
// Lazy read so ENABLE_GROWTHBOOK_DEV from globalSettings.env (applied after
|
||||
// module load) is picked up. USER_TYPE is a build-time define so it's safe.
|
||||
export function getGrowthBookClientKey(): string {
|
||||
return process.env.USER_TYPE === 'ant'
|
||||
? isEnvTruthy(process.env.ENABLE_GROWTHBOOK_DEV)
|
||||
? 'sdk-yZQvlplybuXjYh6L'
|
||||
: 'sdk-xRVcrliHIlrg4og4'
|
||||
: 'sdk-zAZezfDKGoZuXXKe'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue