Skip to content

Commit 1808b90

Browse files
piehvladar
authored andcommitted
fix(gatsby): don't log FAST_DEV message for each worker (#32961)
(cherry picked from commit e547dc3)
1 parent ea161ce commit 1808b90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/gatsby/src/services/initialize.ts

+4-1
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)