Skip to content

Commit

Permalink
Add a check for GITHUB_ACTIONS (github#16912)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco authored Dec 11, 2020
1 parent 28de276 commit 1e7af2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1e7af2a

Please sign in to comment.