-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] How to allow empty sitemap? #421
Comments
Can you make simple self-contained example or add a test that shows the issue you are encountering? It's hard to know if you are saying:
|
Well, it is quite simple, it just triggers this https://github.com/ekalinin/sitemap.js/blob/master/lib/sitemap-stream.ts#L135 when there are no sitemap items. I have solved this atm but adding a sitemap item of the websites homepage, this allows me to "empty" the sitemap |
Thanks! There are a few issues in the repo related to this behavior and there are some annoying issues that it causes. I'm going to see about changing it to no longer throw |
I know my sitemap is empty I have done stuff to make it empty but this repo keeps giving me an error that it's empty and refuses to update the sitemap, is there a way I can bypass this error?
The text was updated successfully, but these errors were encountered: