We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d885ea commit 491b793Copy full SHA for 491b793
src/bin.ts
@@ -32,7 +32,7 @@ spinner.add({
32
33
if (typeof userConfig === 'function') {
34
const args = minimist(process.argv.slice(2), { alias: { env: ['e'] } });
35
- const env = args['env'] || 'development';
+ const env = args['env'] || process.env['NODE_ENV'] || 'development';
36
task.title += ` [${colors.green(env)}]`;
37
ctx.configs = toArray(await userConfig(env));
38
} else {
0 commit comments