fix(cli): If NODE_ENV is not defined then default to production for medusa start (#11325)
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
co-authored by
Oli Juhl
parent
7d208afb07
commit
f13c1215cb
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/cli": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(cli): If NODE_ENV is not defined then default to "production" for medusa start
|
||||||
@@ -422,7 +422,7 @@ function buildLocalCommands(cli, isLocalProject) {
|
|||||||
}),
|
}),
|
||||||
handler: handlerP(
|
handler: handlerP(
|
||||||
getCommandHandler(`start`, (args, cmd) => {
|
getCommandHandler(`start`, (args, cmd) => {
|
||||||
process.env.NODE_ENV = process.env.NODE_ENV || `development`
|
process.env.NODE_ENV = process.env.NODE_ENV || `production`
|
||||||
cmd(args)
|
cmd(args)
|
||||||
// Return an empty promise to prevent handlerP from exiting early.
|
// Return an empty promise to prevent handlerP from exiting early.
|
||||||
// The development server shouldn't ever exit until the user directly
|
// The development server shouldn't ever exit until the user directly
|
||||||
|
|||||||
Reference in New Issue
Block a user