Skip to content

Commit cada108

Browse files
authored
fix(gatsby-source-filesystem): Ensure fastq concurrency parameter of the correct type (#34186)
1 parent c85a707 commit cada108

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/gatsby-source-filesystem/src/create-remote-file-node.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ let showFlagWarning = !!process.env.GATSBY_EXPERIMENTAL_REMOTE_FILE_PLACEHOLDER
4646
* Queue Management *
4747
********************/
4848

49-
const queue = Queue(pushToQueue, process.env.GATSBY_CONCURRENT_DOWNLOAD || 200)
49+
const GATSBY_CONCURRENT_DOWNLOAD = process.env.GATSBY_CONCURRENT_DOWNLOAD
50+
? parseInt(process.env.GATSBY_CONCURRENT_DOWNLOAD, 10) || 0
51+
: 200
52+
53+
const queue = Queue(pushToQueue, GATSBY_CONCURRENT_DOWNLOAD)
5054

5155
/**
5256
* @callback {Queue~queueCallback}

0 commit comments

Comments
 (0)