gatsby-plugin-create-client-paths
$ 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/*`] },
},