Skip to content

Commit 0c5472c

Browse files
committed
Update shutdown condition to prevent application exit in development environment
1 parent 1bad464 commit 0c5472c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend-runner/backend-runner.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class BackendRunnerService implements OnApplicationBootstrap, OnModuleIni
129129
worker.on('closed', () => {
130130
this.logger.fatal(`Worker closed 🟥`);
131131

132-
if (process.env.NODE_ENV === 'production') {
132+
if (process.env.NODE_ENV !== 'development') {
133133
this.logger.fatal(`Closing application...`);
134134
process.exit(1);
135135
}

0 commit comments

Comments
 (0)