Download src/constants/keys.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/constants/keys.ts
- Command line
-
hf download hf://chenbhao/codev@afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/constants/keys.ts
-
curl -L -o keys.ts https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/constants/keys.ts
624 Bytes
| 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 { | |
| const useExperimentalClientKey = | |
| isEnvTruthy(process.env.CLAUDE_CODE_EXPERIMENTAL_BUILD) || | |
| (process.env.USER_TYPE === 'ant' && | |
| isEnvTruthy(process.env.ENABLE_GROWTHBOOK_DEV)) | |
| if (useExperimentalClientKey) { | |
| return 'sdk-yZQvlplybuXjYh6L' | |
| } | |
| return process.env.USER_TYPE === 'ant' | |
| ? 'sdk-xRVcrliHIlrg4og4' | |
| : 'sdk-zAZezfDKGoZuXXKe' | |
| } | |