Skip to content

Commit 2f7dc5a

Browse files
EJ MasonEJ Mason
authored andcommitted
Fix input type of normalizePort
Normalize port is typed to only accept strings as parameters. When the method is invoked it defaults to 3000 as a string if no port is defined.
1 parent ba70615 commit 2f7dc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class Bootstrap {
1717

1818
public defineExpressApp(app: express.Application): express.Application {
1919
app.set('host', process.env.APP_HOST);
20-
app.set('port', Server.normalizePort(process.env.PORT || process.env.APP_PORT || 3000));
20+
app.set('port', Server.normalizePort(process.env.PORT || process.env.APP_PORT || '3000'));
2121
return app;
2222
}
2323

0 commit comments

Comments
 (0)