Skip to content

Commit e547dc3

Browse files
authored
fix(gatsby): don't log FAST_DEV message for each worker (#32961)
1 parent b88b9d1 commit e547dc3

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)