Migrating your app: Content v2 → v3
- Upgrade
@nuxt/contentto ^3 - Add
content.config.tscollections - Replace
queryContentwithqueryCollection - Replace dropped components (
ContentDoc, etc.) withContentRenderer - Keep
TableOfContentsusage; pass-in path is unchanged
diff
- const page = await queryContent(route.path).findOne()
+ const page = await queryCollection('content').path(route.path).first()Auto-fetch will pick fetch-v3 after the package major is 3.
