From bd228bce7107b69d4bab1e96283a4c85bafc9e4b Mon Sep 17 00:00:00 2001 From: simeng-li Date: Thu, 18 Apr 2024 17:59:15 +0800 Subject: [PATCH] fix(console): force dev feature enabled false (#5752) * fix(console): force dev feature enabled false force dev feature enabled false * fix(console): avoid lint error avoid lint error * fix(console): enable dev feature for integration tests enable dev feature for integration tests --- packages/console/src/consts/env.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/console/src/consts/env.ts b/packages/console/src/consts/env.ts index fcdd528d1..d54c13442 100644 --- a/packages/console/src/consts/env.ts +++ b/packages/console/src/consts/env.ts @@ -4,5 +4,4 @@ export const isProduction = process.env.NODE_ENV === 'production'; export const isCloud = yes(process.env.IS_CLOUD); export const adminEndpoint = process.env.ADMIN_ENDPOINT; -export const isDevFeaturesEnabled = - !isProduction || yes(process.env.DEV_FEATURES_ENABLED) || yes(process.env.INTEGRATION_TEST); +export const isDevFeaturesEnabled: boolean = yes(process.env.INTEGRATION_TEST);