Skip to content

Instantly share code, notes, and snippets.

@rayriffy rayriffy/gatsby-node.js Secret
Created May 4, 2019

What would you like to do?
* Generate page from dynamic URLs that match RegExp
exports.onCreatePage = async ({page, actions}) => {
const {createPage} = actions
if (page.path.match(/^\/g/)) {
page.matchPath = '/g/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.