source dump of claude code
1import { isEnvTruthy } from '../utils/envUtils.js'
2
3// Lazy read so ENABLE_GROWTHBOOK_DEV from globalSettings.env (applied after
4// module load) is picked up. USER_TYPE is a build-time define so it's safe.
5export function getGrowthBookClientKey(): string {
6 return process.env.USER_TYPE === 'ant'
7 ? isEnvTruthy(process.env.ENABLE_GROWTHBOOK_DEV)
8 ? 'sdk-yZQvlplybuXjYh6L'
9 : 'sdk-xRVcrliHIlrg4og4'
10 : 'sdk-zAZezfDKGoZuXXKe'
11}