I’m attempting to build a Gastby site on Netlify that has the pathPrefix setting configured in gatsby-config.js. I’m trying to serve the site under a /news subdirectory.
When I build locally, taking care to use the --prefix-paths switch, everything works correctly and the site appears as localhost:8000/news.
I’ve added the --prefix-paths settings to the npm run build command in netlify.toml, as well as on the UI in my Netlify panel, but still Netlify doesn’t build the gatsby site to appear under the /news subdirectory.
Am I missing another configuration of some sort? I can see in Netlify’s build log that the --prefix-paths switch is being included in the npm run build command, but the /news subdirectory does not appear on the live Netlify site.
Thanks for any help.