Skip to content

Commit

Permalink
run setGatsbyApiToState in onPreInit to delete auth options (#32338)
Browse files Browse the repository at this point in the history
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
TylerBarnes and gatsbybot committed Jul 13, 2021
1 parent f7c1897 commit 514f995
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/gatsby-source-wordpress/src/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 514f995

Please sign in to comment.