Skip to content

Compatibility

PackageSupported
nuxt^3.16.0 || ^4.0.0 (primary: Nuxt 4)
@nuxt/content^2.0.0 || ^3.0.0
Vue3.x

Dual Content majors

The module detects @nuxt/content’s major version from node_modules and registers one fetch plugin:

MajorPluginAPI
2fetch-v2queryContent(path).findOne()
3fetch-v3queryCollection(collection).path(path).first()

v2 and v3 cannot share a single node_modules tree. This repo keeps separate playground apps under playgrounds/content-v2 and playgrounds/content-v3.

Runtime dependency note

The published package depends on @nuxt/kit >=3.16.0 <5.0.0 so Nuxt 3.16+ and Nuxt 4 hosts can resolve a matching kit. Nuxt 4 remains the primary supported host for this major; on Nuxt 3, keep @nuxt/kit aligned with your Nuxt version in the lockfile.

Released under the MIT License.