Skip to content

nuxt-modules/sanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

35ec15d · May 5, 2023
Apr 18, 2023
Aug 18, 2022
May 5, 2023
May 5, 2023
May 5, 2023
Mar 15, 2023
Aug 7, 2020
Sep 13, 2020
Feb 17, 2022
Aug 18, 2022
Aug 18, 2022
Oct 23, 2022
Aug 7, 2020
Aug 7, 2020
Feb 24, 2023
Aug 18, 2022
Apr 18, 2023
May 5, 2023
May 5, 2023
Aug 18, 2022
Feb 17, 2022
Nov 16, 2022
Feb 17, 2022
Apr 20, 2022

Repository files navigation

@nuxtjs/sanity

Nuxt Sanity

npm version npm downloads Codecov License Nuxt Volta

Sanity integration for Nuxt

Features

  • Just bring your sanity.json - no additional configuration required
  • Ultra-lightweight Sanity client
  • Zero-config image/file components + portable text renderer
  • Supports GROQ syntax highlighting
  • Nuxt 3 and Nuxt Bridge support

📖  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 modules section of nuxt.config.ts
{
  modules: [
    '@nuxtjs/sanity',
  ],
  sanity: {
    // module options
  }
}

Note: For Nuxt 2 support without Bridge, install @nuxtjs/sanity@0.10.0 and follow the instructions at https://v0.sanity.nuxtjs.org.

Development

  1. Clone this repository
  2. Install dependencies using pnpm install
  3. Stub module with pnpm dev:prepare
  4. Start development server using pnpm dev

License

MIT License