The sitemap I am trying to build is not finding the blog pages that are dynamically rendered.
yarn build // running nuxi build
node .output/server/index.mjs
nuxt: ^3.10.2, @nuxtjs/sitemap: ^5.1.0
Blog Posts are displayed, fetching happens through apollo in one of my components:
const { data, pending } = await useAsyncQuery(getPosts, { size: numArticlesPerPage, offset: offset.value })
Also, according to the docs I added to my nuxt.config.ts:
nitro: {
prerender: {
crawlLinks: true,
routes: ["/", "/blog"], // I also tried adding the sitemap file here directly
},
},
You need to add an API source for nuxt sitemap to generate the pages.