harlan-zw / nuxt-seo

The complete SEO solution for Nuxt.
https://nuxtseo.com
MIT License
1.08k stars 70 forks source link

[WARN] You are using multiple-sitemaps but have provided sitemap.sources in your Nuxt config. This will be ignored, please move it to the child sitemap config. #319

Closed bernhardberger closed 1 month ago

bernhardberger commented 1 month ago

Details

I'm getting this warning, but I'm pretty sure I'm doing everything according to the docs:

[@nuxtjs/sitemap 6:28:26 PM]  WARN  You are using multiple-sitemaps but have provided sitemap.sources in your Nuxt config. This will be ignored, please move it to the child sitemap config.

 WARN  Learn more at: https://nuxtseo.com/sitemap/guides/multi-sitemaps                @nuxtjs/sitemap 6:28:26 PM

nuxt.config.ts:

 sitemap: {
    cacheMaxAgeSeconds: 3600, // 1 hour
    sitemaps: {
      pages: {
        includeAppSources: true,
        sources: [
          '/api/__sitemap__/pages'
        ]
      },
      filterpages: {
        sources: [
          '/api/__sitemap__/specialpages'
        ]
      },
      vehicles: {
        sources: [
          '/api/__sitemap__/products'
        ]
      },
    },
  },

What exactly am I doing wrong here to get this error? The generated content of the sitemap.xml is correct..

I don't understand where I supposedly have configured sitemap.sources?

harlan-zw commented 1 month ago

Hey, can you try the latest sitemap module 6.1.0 and see if you still have issues.

afuentesdp90 commented 3 weeks ago

Same problem with v6.1.2

harlan-zw commented 3 weeks ago

Please share your config