© 2026 Hedgehog Software, LLC
^3.16.2
future: { compatibilityVersion: 4 }, compatibilityDate: '2024-07-11'
3.4.0
root/content/general.md
const { data: general } = await useAsyncData("general", () => queryContent("general").findOne() ); if (!general.value) { throw createError({ statusCode: 404, statusMessage: "Content Data Page not found", fatal: true, }); }
queryContent("/").findOne()
const { data: page } = await useAsyncData('general', () => { return queryCollection('general').path('/').first() })
content.config.ts
import { defineCollection, defineContentConfig } from '@nuxt/content' export default defineContentConfig({ collections: { docs: defineCollection({ source: '**/*.md', type: 'data', // also tried 'page' }), }, })