Skip to content

Commit

Permalink
feat: Gatsby v3 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: replaced boundActionCreators with actions to support Gatsby v3.
  • Loading branch information
christianzoppi committed Mar 11, 2021
1 parent 3260567 commit 98c5607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const Sync = require('./src/sync')
const getStoryParams = require('./src/getStoryParams')
const stringify = require('json-stringify-safe')

exports.sourceNodes = async function({ boundActionCreators }, options) {
const { createNode, setPluginStatus } = boundActionCreators;
exports.sourceNodes = async function({ actions }, options) {
const { createNode, setPluginStatus } = actions;
const client = new StoryblokClient(options, 'https://api.storyblok.com/v1');

Sync.init({
Expand Down

0 comments on commit 98c5607

Please sign in to comment.