Skip to content
Discussion options

You must be logged in to vote

Can be done by using gatsby-plugin-page-creator. You can easily customize the origin of the /pages folder by:

    {
      resolve: `gatsby-plugin-page-creator`,
      options: {
        path: `${__dirname}/src/app-pages`,
      },
    },

You can even have several instances of the plugin to split the page generation or ignore some files by using the ignore option:

    {
      resolve: `gatsby-plugin-page-creator`,
      options: {
        path: `${__dirname}/src/pages`,
        ignore: [`foo-bar.js`],
      },
    },

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@princefishthrower
Comment options

Answer selected by princefishthrower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants