Errors when I deploy:

in gatsby.config:
module.exports = {
siteTitle: "Derp Foundation", // <title>
shortSiteTitle: "RPF", // <title> ending for posts and pages
siteDescription: "Enlightening humans on derp and derp.",
siteUrl: "https://jimtheman.github.io",
pathPrefix: "/Raw-Plants-Foundation-Website",
siteImage: "preview.jpg",
siteLanguage: "en",
// author
authorName: "Jim Lynch",
authorTwitterAccount: "webwhizjim",
// info
headerTitle: "The Raw Plants Foundation",
headerSubTitle: "Changing the world one raw plant at a time.",
// manifest.json
manifestName: "RPF",
manifestShortName: "RPF", // max 12 characters
manifestStartUrl: "/index.html",
manifestBackgroundColor: "white",
manifestThemeColor: "#666",
manifestDisplay: "standalone",
// social
authorSocialLinks: [
{ name: "github", url: "https://github.com/rawplants" },
{ name: "twitter", url: "https://twitter.com/rawplants" },
{ name: "facebook", url: "http://facebook.com/rawplants" }
]
};
it worky path prefix
no worky
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.1 - /usr/local/bin/node
npm: 5.6.0 - /usr/local/bin/npm
Browsers:
Chrome: 69.0.3497.100
Safari: 12.0
npmPackages:
gatsby: ^2.0.4 => 2.0.19
gatsby-image: ^2.0.5 => 2.0.13
gatsby-plugin-algolia: ^0.1.0 => 0.1.1
gatsby-plugin-catch-links: ^2.0.2 => 2.0.4
gatsby-plugin-feed: ^2.0.5 => 2.0.7
gatsby-plugin-google-analytics: ^2.0.6 => 2.0.6
gatsby-plugin-layout: ^1.0.2 => 1.0.3
gatsby-plugin-manifest: ^2.0.2 => 2.0.4
gatsby-plugin-netlify: ^2.0.0 => 2.0.1
gatsby-plugin-offline: ^2.0.5 => 2.0.5
gatsby-plugin-react-helmet: ^3.0.0 => 3.0.0
gatsby-plugin-react-svg: ^2.0.0 => 2.0.0
gatsby-plugin-sharp: ^2.0.5 => 2.0.6
gatsby-plugin-sitemap: ^2.0.1 => 2.0.1
gatsby-plugin-styled-jsx: ^3.0.1 => 3.0.1
gatsby-plugin-styled-jsx-postcss: ^2.0.2 => 2.0.2
gatsby-remark-copy-linked-files: ^2.0.5 => 2.0.5
gatsby-remark-emojis: ^0.2.3 => 0.2.3
gatsby-remark-external-links: ^0.0.4 => 0.0.4
gatsby-remark-images: ^2.0.1 => 2.0.3
gatsby-remark-prismjs: ^3.0.0 => 3.0.1
gatsby-remark-responsive-iframe: ^2.0.5 => 2.0.5
gatsby-remark-smartypants: ^2.0.5 => 2.0.5
gatsby-source-filesystem: ^2.0.1 => 2.0.2
gatsby-transformer-remark: ^2.1.3 => 2.1.6
gatsby-transformer-sharp: ^2.1.1 => 2.1.3
npmGlobalPackages:
gatsby-cli: 2.4.2
Do you build using gatsby build --prefix-paths? It should worky then
Ya that's exactly how I did it, but still in file paths the prefix no
appear-o :(
On Tue, Oct 9, 2018, 5:09 PM Michal Piechowiak notifications@github.com
wrote:
Do you build using gatsby build --prefix-paths? It should worky then
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/8965#issuecomment-428353103,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFGys5sDkzCJWephJXpfIM30T3HIMdnAks5ujRCTgaJpZM4XUCU8
.
Can you try-o deleting .cache and running gatsby build --prefix-paths and deploying again? I think this might be same issue as https://github.com/gatsbyjs/gatsby/issues/7881
Ok will give it a go-o and circle back to the squadron hq. thanks again
Just tried, but same errors.

please sir, is there anyone who can think of to be done?
@JimTheMan would you be able to provide a repo we can take a look at? It seems unlikely that this is broken in Gatsby, because we have e2e tests validating this behavior!
Thank you!
thanks @DSchau, it's this repository: https://github.com/JimTheMan/Raw-Plants-Foundation-Website
btw love this pic of you :D

Lots of issues with that site (mostly the Cat2Page.js page), but the main issue is that pathPrefix isn't actually set in your config.
Setting up pathPrefix in content/meta/config.js will ensure that pathPrefix is actually set. If it's not set in gatsby-config.js (it's not currently), then the build step won't work.
Additionally, pathPrefix needs to be at the top level of gatsby-config.js, not nested within siteMetadata.
So if that's added, and you ensure that gatsby build --prefix-paths is used prior to deploying, this should work just dandy.
Going to close this as answered, thanks for the question!
@DSchau Not sure what you mean by "lots of issues". I had deleted Cat2Page and hadn't pushed yet.
The real issue was as you mentioned, pathPrefix needed to be at the top level of gatsby-config.js, not nested within siteMetadata. This is probably just an inconsistency with new versions of gatsby, and I should probably let the maintainer of gatsby starter hero blog know that his template is not correct syntax anymore...
Anyway, thanks for making me aware of this. And thanks for closing my issue, dickhead.
Whoa! I didn't intend to be negative, sorry about that! It didn't build for me, and I had to solve a few issues to get it building, that's all I meant.
Sorry for the confusion here!
lol it's all good. I more angry about you closing my issue before I confirmed it was solved.
@JimTheMan yeah, I can empathize with that. I think it's pretty reasonable to close when the issue was resolved after I fixed it and I confirmed the fix! I tend to treat issues that way, i.e. let's close until we hear differently that it needs to be re-opened.
Not intended to downplay your issue or anything! In the future, I'll be sure to make it clear that the issue is closed _for now_ but feel free to re-open if the fix didn't work or further info comes up.
It's ok. I tend to troll too much. 👺
Anyway, that's for the help and have fun working at gatsby
On Wed, Oct 10, 2018, 12:36 PM Dustin Schau notifications@github.com
wrote:
@JimTheMan https://github.com/JimTheMan yeah, I can empathize with
that. I think it's pretty reasonable to close when the issue was resolved
after I fixed it and I confirmed the fix! I tend to treat issues that way,
i.e. let's close until we hear differently that it needs to be re-opened.Not intended to downplay your issue or anything! In the future, I'll be
sure to make it clear that the issue is closed for now but feel free to
re-open if the fix didn't work or further info comes up.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/8965#issuecomment-428642317,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFGys5xlL1s7Ow7Kx1wXIlSLOjoWIEUHks5ujiIDgaJpZM4XUCU8
.
hmm actually it still doesn't work properly. Now whenever I click on a link it puts the prefix path twice...
see this page and try clicking on "contact us".
The link is just a link in markdown: [contact us](/contact)
Most helpful comment
@JimTheMan yeah, I can empathize with that. I think it's pretty reasonable to close when the issue was resolved after I fixed it and I confirmed the fix! I tend to treat issues that way, i.e. let's close until we hear differently that it needs to be re-opened.
Not intended to downplay your issue or anything! In the future, I'll be sure to make it clear that the issue is closed _for now_ but feel free to re-open if the fix didn't work or further info comes up.