UNPKG

gatsby-magic-starter

Version:
19 lines (16 loc) 455 B
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.com/docs/node-apis/ */ // You can delete this file if you're not using it exports.onCreatePage = async ({ page, actions }) => { const { createPage } = actions // page.matchPath is a special key that's used for matching pages // only on the client. if (page.path.match(/^\/app/)) { page.matchPath = `/app/*` // Update the page. createPage(page) } }