diff --git a/packages/shared-lib-node/src/env.ts b/packages/shared-lib-node/src/env.ts index fb6fc526..072dac0c 100644 --- a/packages/shared-lib-node/src/env.ts +++ b/packages/shared-lib-node/src/env.ts @@ -26,7 +26,7 @@ export const yargsOptionsBuilderForEnv = { type: 'boolean', }, 'auto-cascade-env': { - description: 'Same with --cascade-env=.', + description: 'Same with --cascade-env=.', type: 'boolean', default: true, }, @@ -47,7 +47,7 @@ export function loadEnvironmentVariables(argv: Options, cwd: string, orgCwd?: st (argv.cascadeNodeEnv ? process.env.NODE_ENV || 'development' : argv.autoCascadeEnv - ? process.env.WB_ENV || 'development' + ? process.env.WB_ENV || process.env.NODE_ENV || 'development' : undefined); if (typeof cascade === 'string') { if (envPaths.length === 0) envPaths.push(path.join(cwd, '.env'));