mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
support forced envs
This commit is contained in:
parent
59a143719d
commit
5b78ad9bb6
@ -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,
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user