diff --git a/packages/gatsby-source-wordpress/src/gatsby-node.ts b/packages/gatsby-source-wordpress/src/gatsby-node.ts index de9943dd8c5fa..1a44d3ad409f3 100644 --- a/packages/gatsby-source-wordpress/src/gatsby-node.ts +++ b/packages/gatsby-source-wordpress/src/gatsby-node.ts @@ -2,7 +2,11 @@ import { runApisInSteps } from "./utils/run-steps" import * as steps from "./steps" module.exports = runApisInSteps({ - onPreInit: [steps.setErrorMap, steps.tempPreventMultipleInstances], + onPreInit: [ + steps.setGatsbyApiToState, + steps.setErrorMap, + steps.tempPreventMultipleInstances, + ], pluginOptionsSchema: steps.pluginOptionsSchema,