File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { buildBundle } from '../../lib/bundler';
2222
2323export default async ( cmd : Command ) => {
2424 const appConfigs = await loadConfig ( {
25- env : 'production' ,
25+ env : process . env . NODE_ENV ?? 'production' ,
2626 rootPaths : [ paths . targetRoot , paths . targetDir ] ,
2727 } ) ;
2828 await buildBundle ( {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { serveBundle } from '../../lib/bundler';
2222
2323export default async ( cmd : Command ) => {
2424 const appConfigs = await loadConfig ( {
25- env : 'development' ,
25+ env : process . env . NODE_ENV ?? 'development' ,
2626 rootPaths : [ paths . targetRoot , paths . targetDir ] ,
2727 } ) ;
2828 const waitForExit = await serveBundle ( {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { serveBackend } from '../../lib/bundler/backend';
2222
2323export default async ( cmd : Command ) => {
2424 const appConfigs = await loadConfig ( {
25- env : 'development' ,
25+ env : process . env . NODE_ENV ?? 'development' ,
2626 rootPaths : [ paths . targetRoot , paths . targetDir ] ,
2727 } ) ;
2828
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { buildBundle } from '../../lib/bundler';
2222
2323export default async ( cmd : Command ) => {
2424 const appConfigs = await loadConfig ( {
25- env : 'production' ,
25+ env : process . env . NODE_ENV ?? 'production' ,
2626 rootPaths : [ paths . targetRoot , paths . targetDir ] ,
2727 } ) ;
2828 await buildBundle ( {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { serveBundle } from '../../lib/bundler';
2222
2323export default async ( cmd : Command ) => {
2424 const appConfigs = await loadConfig ( {
25- env : 'development' ,
25+ env : process . env . NODE_ENV ?? 'development' ,
2626 rootPaths : [ paths . targetRoot , paths . targetDir ] ,
2727 } ) ;
2828 const waitForExit = await serveBundle ( {
You can’t perform that action at this time.
0 commit comments