Skip to content

Commit 1e7af2a

Browse files
authored
Add a check for GITHUB_ACTIONS (#16912)
1 parent 28de276 commit 1e7af2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (!module.parent) {
1919
// If in a deployed environment, warm the server at the start
2020
if (process.env.NODE_ENV === 'production') {
2121
// If in a true production environment, wait for the cache to be fully warmed.
22-
if (process.env.HEROKU_PRODUCTION_APP) {
22+
if (process.env.HEROKU_PRODUCTION_APP || process.env.GITHUB_ACTIONS) {
2323
await warmServer()
2424
} else {
2525
// If not in a true production environment, don't wait for the cache to be fully warmed.

0 commit comments

Comments
 (0)