Skip to content

Commit 91dc167

Browse files
GatsbyJS Botpiehvladar
authored
fix(gatsby): don't log FAST_DEV message for each worker (#32961) (#32967)
* 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>
1 parent f936c93 commit 91dc167

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/gatsby/src/services/initialize.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ interface IPluginResolutionSSR extends IPluginResolution {
3535
if (
3636
process.env.gatsby_executing_command === `develop` &&
3737
process.env.GATSBY_EXPERIMENTAL_FAST_DEV &&
38-
!isCI()
38+
!isCI() &&
39+
// skip FAST_DEV handling in workers, all env vars will be handle
40+
// by main process already and passed to worker
41+
!process.env.GATSBY_WORKER_POOL_WORKER
3942
) {
4043
process.env.GATSBY_EXPERIMENTAL_DEV_SSR = `true`
4144
process.env.PRESERVE_FILE_DOWNLOAD_CACHE = `true`

0 commit comments

Comments
 (0)