Added packages wp, helmet and base config to fetch data with graphql

This commit is contained in:
Moris Zen
2018-06-25 09:19:20 +02:00
parent a25a63e200
commit 57f717fec0
3 changed files with 42 additions and 0 deletions

22
gatsby-node.js Normal file
View 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
}
}
}
}
`
)
})
}