github nuxt/content v3.0.0

one day ago

Content version 3 is out - introducing SQL based storage, collections, preview API for a better Studio integration and tons of performance improvements.

Read the Announcement to find out more about changes in version 3.

Checkout 📖 Content module's official docs

✨ Highlights

  • 🚀 Performance Improvements
    • Serverless Compatibility
    • WASM SQLite in Browser
  • 🗄️ Content Collections
    • Define Collections
    • Collections Schema
  • 🔧 Simplified Vue Utils
  • 📦 Built-in Components
  • 🔷 TypeScript Integration
  • 🖼️ Studio Integration
    • Preview API

Note

The new database system enhances the way your data files are stored and structured, ensuring better performance and scalability. This update is entirely behind the scenes and does not affect the file types you can use in Content (yml, json, and markdown).


Breaking changes from previous alpha version

  • A new generic Preview API has been implemented directly into Nuxt Content. To preview your website in Studio, you just need to enable the preview mode in the Nuxt configuration file by binding the Studio API.
export default defineNuxtConfig({
  content: {
    preview: {
      api: 'https://api.nuxt.studio/
    }
  },
})
  • To keep the app config file updatable from Studio we just need to update the helper import of the nuxt.schema.ts file from @nuxthq/studio/theme to @nuxt/content/preview.

Don't miss a new content release

NewReleases is sending notifications on new releases.