Added packages wp, helmet and base config to fetch data with graphql
This commit is contained in:
22
gatsby-node.js
Normal file
22
gatsby-node.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const path = require('path')
|
||||
|
||||
exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||
const { createPage } = boundActionCreators
|
||||
return new Promise((resolve, reject) => {
|
||||
graphql(
|
||||
`
|
||||
{
|
||||
allWordpressPage {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
slug
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user