hardening: isolate third-party paths and clean external-build metadata (#311)
* hardening: isolate third-party paths and clean external-build metadata * fix: restore external feedback flow and make privacy check portable
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
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'
|
||||
return process.env.GROWTHBOOK_CLIENT_KEY ?? ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user