Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit c3b1b5d

Browse files
committed
Remove createPageDependency calls
1 parent 1d827f7 commit c3b1b5d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

web/gatsby-node.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { format } = require('date-fns')
77
*/
88

99
async function createBlogPostPages (graphql, actions, reporter) {
10-
const { createPage, createPageDependency } = actions
10+
const { createPage } = actions
1111
const result = await graphql(`
1212
{
1313
allSanityPost(filter: { slug: { current: { ne: null } } }) {
@@ -40,13 +40,11 @@ async function createBlogPostPages (graphql, actions, reporter) {
4040
component: require.resolve('./src/templates/blog-post.js'),
4141
context: { id }
4242
})
43-
44-
createPageDependency({ path, nodeId: id })
4543
})
4644
}
4745

4846
async function createProjectPages (graphql, actions, reporter) {
49-
const { createPage, createPageDependency } = actions
47+
const { createPage } = actions
5048
const result = await graphql(`
5149
{
5250
allSanityProject(filter: { slug: { current: { ne: null } } }) {
@@ -78,8 +76,6 @@ async function createProjectPages (graphql, actions, reporter) {
7876
component: require.resolve('./src/templates/project.js'),
7977
context: { id }
8078
})
81-
82-
createPageDependency({ path, nodeId: id })
8379
})
8480
}
8581

0 commit comments

Comments
 (0)