You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m currently migrating my project to Nuxt Content v3, and I’ve encountered an issue with @nuxtjs/sitemap version 7.2.1.
The /__sitemap__/posts.xml and /__sitemap__/pages.xml in my project are empty.
After debugging, I found that /__sitemap__/nuxt-content-urls.json returns an empty array. Further logs revealed that the sitemap property in the result of queryCollection is null for every item. However, I’m not sure how to proceed with pinpointing the issue.
Hi, thanks for the issue. This looks like an issue with the Nuxt Content hooks running before the sitemap module loads. A work around for the time being is to load @nuxt/content last in your modules.
I'll push up a console warning for this use case but I'll need Nuxt Content to fix this upstream.
🐛 The bug
Hi!
I’m currently migrating my project to
Nuxt Content v3
, and I’ve encountered an issue with@nuxtjs/sitemap
version7.2.1
.The
/__sitemap__/posts.xml
and/__sitemap__/pages.xml
in my project are empty.After debugging, I found that
/__sitemap__/nuxt-content-urls.json
returns an empty array. Further logs revealed that thesitemap
property in the result ofqueryCollection
is null for every item. However, I’m not sure how to proceed with pinpointing the issue.Below are my configs:
nuxt.config.ts
:content.config.ts
:🛠️ To reproduce
https://github.com/HADB/hadb.me/tree/feat/content-v3-migration
🌈 Expected behavior
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: