From d113d7a6ab92296bcd21537f9cbf8a03d05df06e Mon Sep 17 00:00:00 2001 From: aswanson-nr Date: Tue, 25 Jan 2022 15:33:19 -0800 Subject: [PATCH] feat: remove page creation logic for custom layout --- gatsby-node.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 40135d2a..780394c9 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -43,16 +43,6 @@ exports.createPages = async ({ actions, graphql, reporter }) => { }); }; -exports.onCreatePage = async ({ page, actions }) => { - //const { createPage, deletePage } = actions; - //const oldPage = { ...page }; - //if (page.path === '/instant-observability/') { - //page.context.layout = 'QuickStartLayout'; - //} - //deletePage(oldPage); - //createPage(page); -}; - exports.onCreateNode = ({ node, actions }) => { const { createNodeField } = actions;