Skip to content

Commit

Permalink
run setGatsbyApiToState in onPreInit to delete auth options (#32339)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBarnes authored Jul 13, 2021
1 parent 85d8c97 commit f49a976
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 f49a976

Please sign in to comment.