From d79e7ba798f6a27f51b3f6dbbfcae7a0d4f79312 Mon Sep 17 00:00:00 2001 From: tuanaiseo Date: Tue, 5 May 2026 06:11:00 +0700 Subject: [PATCH] refactor(constants): hardcoded empty growthbook key returns The getGrowthBookClientKey function returns empty strings for both dev and production keys, making the function useless. The conditional logic always results in returning an empty string. Affected files: keys.ts Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com> --- src/constants/keys.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/keys.ts b/src/constants/keys.ts index 5971afa1a..3e3d78f25 100644 --- a/src/constants/keys.ts +++ b/src/constants/keys.ts @@ -5,7 +5,7 @@ import { isEnvTruthy } from '../utils/envUtils.js' export function getGrowthBookClientKey(): string { return process.env.USER_TYPE === 'ant' ? isEnvTruthy(process.env.ENABLE_GROWTHBOOK_DEV) - ? '' - : '' + ? process.env.GROWTHBOOK_DEV_KEY || '' + : process.env.GROWTHBOOK_PROD_KEY || '' : '' }