Skip to content

Commit 8a26395

Browse files
authored
Prevent warmserver from blocking the port from being attached (github#16150)
Co-authored-by: Chiedo <[email protected]>
1 parent 2cf68d7 commit 8a26395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (!module.parent) {
1717
portUsed.check(port).then(async status => {
1818
if (status === false) {
1919
// If in production, warm the server at the start
20-
if (process.env.NODE_ENV === 'production') await warmServer()
20+
if (process.env.NODE_ENV === 'production') warmServer()
2121

2222
// workaround for https://github.com/expressjs/express/issues/1101
2323
const server = require('http').createServer(app)

0 commit comments

Comments
 (0)