netlify-plugin-sitemap: Sitemap Not Available
I had an issue with my Sitemap with the recent update. It used to work before with my configuration in my netlify.toml.
When I tried to visit my sitemap, I would end up with a 404 page. Previously, I did not define the buildDir in the past because the default value worked for me. After reading issue #33, I set my buildDir to "./" and that loads my sitemap. However, it’s blank.
I changed it to buildDir = "publish" like the documentation, but I get the 404 again.
Here’s my config:
# Sitemap
[[plugins]]
package = "@netlify/plugin-sitemap"
[plugins.inputs]
buildDir = "publish"
prettyURLs = true
trailingSlash = true
exclude = [
"**/404.html"
]
Please let me know the default buildDir to use. I have my repo hosted on GitHub, but it’s private.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (7 by maintainers)
I checked all of my websites after redeplying them. I see the sitemap is working again, thanks.
Just as a heads up, the README should be updated. It’s showing up as
buildDir = "public"and it should default to the root directory if that hasn’t been implemented already.