Skip to content

help: Missing URLs included in Nuxt Sitemap #482

@bjarnef

Description

@bjarnef

📚 What are you trying to do?

I have two API endpoints, which contain URLs:

/sitemap-da.xml
/sitemap-en.xml

I have the following Nuxt Sitemap config:

sitemap: {
  /*sources: [
    process.env.NUXT_PUBLIC_BASE_URL + '/sitemap-da.xml',
    process.env.NUXT_PUBLIC_BASE_URL + '/sitemap-en.xml',
  ],*/
  sitemaps: {
    ['sitemap-da']: {
      sources: [
        process.env.NUXT_PUBLIC_BASE_URL + '/sitemap-da.xml'
      ]
    },
    ['sitemap-en']: {
      sources: [
        process.env.NUXT_PUBLIC_BASE_URL + '/sitemap-en.xml'
      ]
    }
  }
},

But I only get this:

Image Image

Using debug endpoint shows URLs from sources, but sitemap XML only contains frontpage:

/__sitemap__/debug.json?sitemap=sitemap-da.xml
Image

🔍 What have you tried?

No response

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions