-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
This XML Sitemap contains 0 URLs #287
Comments
Thanks for the issue, I think the issue may have to do with the fact you're mixing multi-sitemap config with single sitemap config. If you provide I'd test out commenting out the sitemaps lines and see how you go. Otherwise please provide a reproduction. |
Ok removing the sitemaps key which previously linked an external sitemap allows me to see the app sources sitemap. |
just copy your config into any key on sitemaps sitemaps: {
pages: {
includeAppSources: true,
sources: ['/api/__sitemap__/urls'],
},
index: [
{
sitemap: `${process.env.BACK_URL}/sitemap.xml`,
},
],
}, |
I have a strage behaviour were my current config is:
The pages sitemap is empty if nuxt-simple-robots is added in the modules. Here's a repro: url If you remove nuxt-simple-robots the pages sitemap works. If you restore it the pages sitemap has 0 urls. |
The sitemap module integrates with the robots module. You are telling the robots module that no pages should be indexable. robots: {
disallow: ['/'],
sitemap: [`/sitemap_index.xml`],
}, The sitemap module does not add pages to that sitemap that shouldn't be indexed. Also the sitemap module automatically adds the sitemap entry so you can remove that line also. |
I've Available in v5.3.0, thanks again! when your config has these types of conflicts, not much else I can do on this issue so going to close. |
Hello, I'm unsure how to go about resolving an issue as it appears the package is not working at all for me and always resolves 0 urls?
I have this debug JSON:
And this settings that for some reasons are the same as another project but they don't work anymore:
And the sitemap is simply empty
The text was updated successfully, but these errors were encountered: