From 8e4ec338c673e655e64145924993387085ec93ca Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Mon, 12 Jul 2021 14:25:25 -0700 Subject: [PATCH] run setGatsbyApiToState in onPreInit to delete auth options --- packages/gatsby-source-wordpress/src/gatsby-node.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,