From 1e7af2a0bbe043eb42dfd13a9e0116dc0beb6b61 Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Fri, 11 Dec 2020 15:15:13 -0500 Subject: [PATCH] Add a check for GITHUB_ACTIONS (#16912) --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index ce00b05169f1..9c8a54e628d4 100644 --- a/server.js +++ b/server.js @@ -19,7 +19,7 @@ if (!module.parent) { // 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) { + if (process.env.HEROKU_PRODUCTION_APP || process.env.GITHUB_ACTIONS) { await warmServer() } else { // If not in a true production environment, don't wait for the cache to be fully warmed.