[BUG] Sitemap plugin fails on export
See original GitHub issueHi,
It seems sitemap generation via react-static-sitemap-plugin
works well on yarn build
but fails on yarn export
giving the following error :
Error: Trace: Error: The sitemap url prefix cannot be empty or undefined!
siteRoot
is defined in my static.config.js
Any clues ?
Thanks !
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Dynamic sitemap generation does not appear to be using the ...
Receiving this error when trying to enable dynamic sitemaps: “Dynamic sitemap generation does not appear to be using the correct rewrite rules; ...
Read more >Common XML sitemap errors - Yoast
Are you getting an error on or about your XML sitemap? In this article, we've listed the most common XML sitemap errors, along...
Read more >How to Fix Yoast's WordPress SEO Sitemap 404 Error
Then, go back to your WP admin page and then go to the SEO plugin > XML sitemaps, and then click the button...
Read more >500 error when certain sitemaps are non-existant #751 - GitHub
I encountered this issue today, for me It was caused by my robots.txt file including the sitemap URL in it. The URL in...
Read more >How to Fix a 404 Error When Viewing Your Sitemap - AIOSEO
Open the aioseo-export-settings file that was downloaded to your computer and search for “filename”. If the value is anything other than “sitemap” for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m experiencing a related problem (I suspect). I have the
REACT_STATIC_PUBLIC_PATH
env variable set, andyarn build
works as expected, generating the correctsitemap.xml
.However, when I run
yarn export
, I end up with asitemap.xml
where thesiteRoot
value fromstatic.config.js
is essentially missing, or treated as an empty string.An example, under
yarn build
:And
yarn export
:I’ll do some further digging, and hopefully yield some more information or a pull request.
There is no new version released since #1352 was merged 4 days ago. Please always check CHANGELOG.md when you’re trying to figure out what’s in your version.