Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Update gatsby-node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pvpg authored Apr 28, 2021
1 parent d1f288d commit 12db288
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ const path = require('path')
exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions

const pages = await graphql(`{
allPrismicProduct {
nodes {
uid
type
url
const pages = await graphql(`
{
allPrismicProduct {
nodes {
uid
type
url
}
}
}
allPrismicBlogPost {
nodes {
uid
type
url
allPrismicBlogPost {
nodes {
uid
type
url
}
}
}
}
`)
`)

pages.data.allPrismicProduct.nodes.forEach((page) => {
createPage({
Expand Down

0 comments on commit 12db288

Please sign in to comment.