Skip to content

Commit

Permalink
fix(gatsby): don't log FAST_DEV message for each worker (#32961) (#32967
Browse files Browse the repository at this point in the history
)

* fix(gatsby): don't log FAST_DEV message for each worker (#32961)

(cherry picked from commit e547dc3)

* trigger ci

Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
  • Loading branch information
3 people committed Aug 31, 2021
1 parent f936c93 commit 91dc167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gatsby/src/services/initialize.ts
Expand Up @@ -35,7 +35,10 @@ interface IPluginResolutionSSR extends IPluginResolution {
if (
process.env.gatsby_executing_command === `develop` &&
process.env.GATSBY_EXPERIMENTAL_FAST_DEV &&
!isCI()
!isCI() &&
// skip FAST_DEV handling in workers, all env vars will be handle
// by main process already and passed to worker
!process.env.GATSBY_WORKER_POOL_WORKER
) {
process.env.GATSBY_EXPERIMENTAL_DEV_SSR = `true`
process.env.PRESERVE_FILE_DOWNLOAD_CACHE = `true`
Expand Down

0 comments on commit 91dc167

Please sign in to comment.