Build once run everywhere: Issues with siteUrl for gatsby-plugin-sitemap #39130
Replies: 1 comment
-
I just realized that this does not make sense. The URL can be static anyways because we're only interested for sitemaps on the project URL. So.. I guess it's pointless to have sitemaps.xml which "correctly" use the URL of each environment. My bad. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently on my happy path to a "build once, run everywhere" image which includes a number of web apps and the server. All the good stuff.
The issue I am currently facing is that the
gatsby-plugin-sitemap
requires thesiteUrl
for generating the sitemaps. That's a little oversight on my end, I guess.Is there a way for me to bypass the need of having the
siteUrl
at build time?It looks like as if
resolveSiteUrl
is not solving the problem. It just seems enable me to fetch the URL remotely but not at runtime.Is there any way to resolve this issue or do I have to create separate builds for separate environments?
Beta Was this translation helpful? Give feedback.
All reactions