Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Sep 30, 2023
1 parent f270baf commit 91669dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared-lib-node/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const yargsOptionsBuilderForEnv = {
type: 'boolean',
},
'auto-cascade-env': {
description: 'Same with --cascade-env=<WB_ENV || "development">.',
description: 'Same with --cascade-env=<WB_ENV || NODE_ENV || "development">.',
type: 'boolean',
default: true,
},
Expand All @@ -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'));
Expand Down

0 comments on commit 91669dc

Please sign in to comment.