Skip to content

Commit f301784

Browse files
fusepilotKyleAMathews
authored andcommitted
move second schema update earlier (#2710)
1 parent 07098fb commit f301784

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/gatsby/src/bootstrap/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ module.exports = async (args: BootstrapArgs) => {
331331
await apiRunnerNode(`onPreExtractQueries`)
332332
activity.end()
333333

334+
// Update Schema for SitePage.
335+
activity = report.activityTimer(`update schema`)
336+
activity.start()
337+
await require(`../schema`)()
338+
activity.end()
339+
334340
// Extract queries
335341
activity = report.activityTimer(`extract queries from components`)
336342
activity.start()
@@ -360,12 +366,6 @@ module.exports = async (args: BootstrapArgs) => {
360366
await writeRedirects()
361367
activity.end()
362368

363-
// Update Schema for SitePage.
364-
activity = report.activityTimer(`update schema`)
365-
activity.start()
366-
await require(`../schema`)()
367-
activity.end()
368-
369369
const checkJobsDone = _.debounce(resolve => {
370370
const state = store.getState()
371371
if (state.jobs.active.length === 0) {

0 commit comments

Comments
 (0)