gatsby-plugin-create-client-paths

JavaScript
$ npm install gatsby-plugin-create-client-paths    

or

$ yarn add gatsby-plugin-create-client-paths    


 // add to gatsby-config.js   
    {
      resolve: `gatsby-plugin-create-client-paths`,
      options: { prefixes: [`/app/*`] },
    },
Source

Also in JavaScript: