iamvishnusankar / next-sitemap

Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.
https://next-sitemap.iamvishnusankar.com
MIT License
3.16k stars 120 forks source link

[Proposal] Autoexclude url with no index meta #794

Closed RodrigoTomeES closed 4 weeks ago

RodrigoTomeES commented 3 months ago

I would like that instead of having to pass the URLs to exclude, it would be possible for the sitemap to be generated taking into account the noindex meta attributes of the page; this way, it would be much easier to perform the task of excluding URLs.

Describe alternatives you've considered A noIndex prop could be added to the page props to directly exclude them from the sitemap if it's easier than reading it from the meta tags. Since it's necessary to pass it to generate the meta tags, it wouldn't pose any problem, and we could "standardize" the way these are passed.

github-actions[bot] commented 1 month ago

Closing this issue due to inactivity.