Skip to content

Commit 1b1b96b

Browse files
committed
Do not randomly crash in development
1 parent fceeb7f commit 1b1b96b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gatsby-node.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ exports.createPages = ({ actions, graphql }) => {
6767
if (node.frontmatter.information_page) {
6868
template = infoPageTemplate
6969
}
70+
if (!node.frontmatter.path) {
71+
// To prevent a bug that happens in development from time to time
72+
return;
73+
}
7074
createPage({
7175
path: node.frontmatter.path,
7276
component: template,

0 commit comments

Comments
 (0)