Skip to content

Commit bd0a7f4

Browse files
authored
Increase timeout to fetching component to 30 seconds (#28264)
1 parent e797658 commit bd0a7f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/gatsby/cache-dir/ensure-page-component-in-bundle.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ const ensureComponentInBundle = chunkName =>
1414
// Tell the server the user wants to visit this page
1515
// to trigger it compiling the page component's code.
1616
//
17-
// Try for 10 seconds and then error.
17+
// Try for 30 seconds and then error.
1818
let checkCount = 0
1919
const checkForBundle = () => {
2020
checkCount += 1
21-
if (checkCount > 99) {
21+
if (checkCount > 299) {
2222
reject(
23-
`Loading the page component ${chunkName} timed out after 5 seconds`
23+
`Loading the page component ${chunkName} timed out after 30 seconds`
2424
)
2525
}
2626
// Check if the bundle is included and return.

0 commit comments

Comments
 (0)