diff --git a/gatsby-node.js b/gatsby-node.js index cc4463e..3b59f1e 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -3,8 +3,8 @@ const Promise = require('bluebird') const path = require('path') const { createFilePath } = require('gatsby-source-filesystem') -exports.createPages = ({ graphql, boundActionCreators }) => { - const { createPage } = boundActionCreators +exports.createPages = ({ graphql, actions }) => { + const { createPage } = actions return new Promise((resolve, reject) => { const blogPost = path.resolve('./src/templates/blog-post.js') @@ -54,8 +54,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => { }) } -exports.onCreateNode = ({ node, boundActionCreators, getNode }) => { - const { createNodeField } = boundActionCreators +exports.onCreateNode = ({ node, actions, getNode }) => { + const { createNodeField } = actions if (node.internal.type === `MarkdownRemark`) { const value = createFilePath({ node, getNode })