diff --git a/server.js b/server.js index ce00b05169f1..744d1fa924c3 100644 --- a/server.js +++ b/server.js @@ -18,14 +18,8 @@ if (!module.parent) { if (status === false) { // If in a deployed environment, warm the server at the start if (process.env.NODE_ENV === 'production') { - // If in a true production environment, wait for the cache to be fully warmed. - if (process.env.HEROKU_PRODUCTION_APP) { - await warmServer() - } else { - // If not in a true production environment, don't wait for the cache to be fully warmed. - // This avoids deployment timeouts in environments with slower servers. - warmServer() - } + // If in a production environment, wait for the cache to be fully warmed. + await warmServer() } // workaround for https://github.com/expressjs/express/issues/1101