JSPM

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

Sanity integration for Nuxt.js

Package Exports

  • @nuxtjs/sanity

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nuxtjs/sanity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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