d3xter-dev / sitemap-module-nuxt-3

Sitemap Module for Nuxt 3
https://sitemap.nuxtjs.org
MIT License
63 stars 12 forks source link

404.html and 200.html pages in sitemap.xml #15

Closed tschortsch closed 1 year ago

tschortsch commented 1 year ago

When running the nuxt generate command the 404.html and 200.html pages get added to the sitemap. This is happending since version 4.0.3 of the module. Is this the desired behavior? Maybe I'm wrong but I don't think those two pages should get indexed by a search engine right?

mertgonul commented 1 year ago

You can exclude these pages by specifying them in the nuxt.config.ts file.

sitemap: { exclude: ['/200.html', '/404.html'], }

tschortsch commented 1 year ago

thanks for the hint! 👌🏻

IgorHalfeld commented 10 months ago

ty @mertgonul

this is useful for add admin routes as well