JSPM

  • Created
  • Published
  • Downloads 3906
  • Score
    100M100P100Q127351F
  • License MIT

Sanity integration for Nuxt.js

Package Exports

  • @nuxtjs/sanity
  • @nuxtjs/sanity/sanity-content
  • @nuxtjs/sanity/sanity-image

Readme

@nuxtjs/sanity

npm version npm downloads Github Actions CI Codecov License

Sanity integration for NuxtJS

Features

  • Just bring your sanity.json - no additional configuration required
  • Ultra-lightweight Sanity client
  • Zero-config image component
  • Supports GROQ syntax highlighting
  • Full support for TypeScript

📖  Read more

Quick setup

  1. Add @nuxtjs/sanity dependency to your project
yarn add @nuxtjs/sanity # or npm install @nuxtjs/sanity
  1. Add @nuxtjs/sanity to the buildModules section of nuxt.config.js
{
  buildModules: [
    '@nuxtjs/sanity',
  ],
  sanity: {
    // module options
  }
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install
  3. Start development server using yarn dev

License

MIT License