We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fceeb7f commit 1b1b96bCopy full SHA for 1b1b96b
1 file changed
gatsby-node.js
@@ -67,6 +67,10 @@ exports.createPages = ({ actions, graphql }) => {
67
if (node.frontmatter.information_page) {
68
template = infoPageTemplate
69
}
70
+ if (!node.frontmatter.path) {
71
+ // To prevent a bug that happens in development from time to time
72
+ return;
73
+ }
74
createPage({
75
path: node.frontmatter.path,
76
component: template,
0 commit comments