gatsby-plugin-advanced-sitemap | Advanced XML Sitemaps for Gatsby.js | Sitemap library
kandi X-RAY | gatsby-plugin-advanced-sitemap Summary
kandi X-RAY | gatsby-plugin-advanced-sitemap Summary
Advanced XML Sitemaps for Gatsby.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- get node id
gatsby-plugin-advanced-sitemap Key Features
gatsby-plugin-advanced-sitemap Examples and Code Snippets
Community Discussions
Trending Discussions on gatsby-plugin-advanced-sitemap
QUESTION
I'm using Ghost with gatsby-starter-ghost and running into an issue with the generated sitemap.xml from gatsby-plugin-advanced-sitemap as well as the RSS feed URL.
My domain name is https://www.officehomelife.com/ and is hosted on https://officehomelife.netlify.app/
The problem is https://www.officehomelife.com/sitemap.xml is generating URLs based off of the netlify domain name and not my domain name. It is also using the netlify domain name for the RSS feed https://feedly.com/i/subscription/feed/https://officehomelife.netlify.app/rss/
I believe this value should be coming from gatsby-starter-ghost\src\utils\siteConfig.js where I have it defined:
...ANSWER
Answered 2020-Oct-26 at 17:33Dealing with environment variables it's a little bit tricky, you have to prefix the variables with GATSBY_
to make them available to the server (Netlify) in the browser-side:
In addition to these Project Environment Variables defined in
.env.*
files, you could also define OS Env Vars. OS Env Vars which are prefixed withGATSBY_
will become available in browser JavaScript.
So, your process.env.SITEURL
should become:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gatsby-plugin-advanced-sitemap
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page