File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ function getRequestHandler(build: ServerBuild): RequestHandler {
127127
128128app . all (
129129 '*' ,
130- process . env . NODE_ENV === 'development'
130+ MODE === 'development'
131131 ? ( ...args ) => getRequestHandler ( devBuild ) ( ...args )
132132 : getRequestHandler ( build ) ,
133133)
@@ -172,7 +172,7 @@ ${chalk.bold('Press Ctrl+C to stop')}
172172 ` . trim ( ) ,
173173 )
174174
175- if ( process . env . NODE_ENV === 'development' ) {
175+ if ( MODE === 'development' ) {
176176 broadcastDevReady ( build )
177177 }
178178} )
@@ -184,7 +184,7 @@ closeWithGrace(async () => {
184184} )
185185
186186// during dev, we'll keep the build module up to date with the changes
187- if ( process . env . NODE_ENV === 'development' ) {
187+ if ( MODE === 'development' ) {
188188 async function reloadBuild ( ) {
189189 devBuild = await import ( `${ BUILD_PATH } ?update=${ Date . now ( ) } ` )
190190 broadcastDevReady ( devBuild )
You can’t perform that action at this time.
0 commit comments