diff --git a/src/boot/master.ts b/src/boot/master.ts index 503f09c1f2..6c23a528fa 100644 --- a/src/boot/master.ts +++ b/src/boot/master.ts @@ -50,7 +50,7 @@ export async function masterMain() { // initialize app config = await init(); - if (config.port == null) { + if (config.port == null || Number.isNaN(config.port)) { bootLogger.error('The port is not configured. Please configure port.', null, true); process.exit(1); }