Skip to content

Commit

Permalink
Added test page
Browse files Browse the repository at this point in the history
  • Loading branch information
winstonma committed Feb 11, 2020
1 parent 102bdf0 commit 1cde1d6
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 467 deletions.
12 changes: 12 additions & 0 deletions gatsby-node.js
Expand Up @@ -5,3 +5,15 @@
*/

// 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(/^\/test/)) {
page.matchPath = "/test/*"

// Update the page.
createPage(page)
}
}

0 comments on commit 1cde1d6

Please sign in to comment.