diff --git a/shared/lib/api_wrapper/index.js b/shared/lib/api_wrapper/index.js index 96da17b0..3fdfc6d8 100644 --- a/shared/lib/api_wrapper/index.js +++ b/shared/lib/api_wrapper/index.js @@ -63,7 +63,7 @@ global.toBoolean = (value) => { } async function injectEnvFromInfisical() { - const envMode = global.isProduction ? "prod" : "dev" + const envMode = global.FORCE_ENV ?? global.isProduction ? "prod" : "dev" console.log(`🔑 Injecting env variables from INFISICAL in [${envMode}] mode...`) @@ -72,7 +72,7 @@ async function injectEnvFromInfisical() { }) const secrets = await client.getAllSecrets({ - environment: global.isProduction ? "prod" : "dev", + environment: envMode, attachToProcessEnv: false, })