
sanity
Go to documentationAccess text, images, and other media with Nuxt and the Sanity headless CMS.
v1.8.1 by
github-actions[bot]
v1.8.0 by
github-actions[bot]
v1.7.3 by
github-actions[bot]
v1.7.2 by
github-actions[bot]
v1.7.1 by
github-actions[bot]
v1.7.0 by
github-actions[bot]
🐞 Bug Fixes
- Use new named export from
@sanity/client
- by @danielroe (0c4c0) - Prevent false-positive warning with Nuxt 3.4+ - by @danielroe (23358)
View changes on GitHub
v1.6.0 by
danielroe
v1.5.0 by
danielroe
1.5.0 (2022-11-16)
v1.4.0 by
danielroe
v1.3.0 by
danielroe
v1.2.3 by
danielroe
v1.2.2 by
danielroe
v1.2.1 by
danielroe
v1.2.0 by
danielroe
1.2.0 (2022-04-20)
v1.1.2 by
danielroe
1.1.2 (2022-04-15)
v1.1.0 by
danielroe
1.1.0 (2022-02-20)
⚠ BREAKING CHANGES
- If you were relying on the auto-disabling part of this module
Bug Fixes
v1.0.0 by
danielroe
1.0.0 (2022-02-17)
Features
👉 Migration
v1 of @nuxtjs/sanity
requires either Nuxt Bridge or Nuxt 3. (If you are using Nuxt 2 without Bridge, you should continue to use v0.10.)
- The main change between Nuxt 2 -> Nuxt 3 is that there is no longer a globally available
$sanity
helper. If you want to keep the current behaviour, just enable theglobalHelper
option:import { defineNuxtConfig } from 'nuxt3' export default defineNuxtConfig({ modules: ['@nuxtjs/sanity'] sanity: { + globalHelper: true } })
- Instead of adding
@nuxtjs/sanity/module
you will add@nuxtjs/sanity
in yournuxt.config
import { defineNuxtConfig } from 'nuxt3' export default defineNuxtConfig({ - modules: ['@nuxtjs/sanity/module'] + modules: ['@nuxtjs/sanity'] })
- You should no longer import helpers like
groq
directly from@nuxtjs/sanity
. These will be available automatically throughout your app using the Nuxt auto-imports feature. If you do need to import them directly you can do so by importing from#imports
.import { groq, useSanity, useSanityQuery } from '#imports'
- If you are using
<SanityContent>
this now no longer renders a wrapper container. If you need the wrapper, you can add it yourself.<template> - <SanityContent :blocks="blocks" /> + <div> + <SanityContent :blocks="blocks" /> + </div> </template>
v0.9.2 by
danielroe
0.9.2 (2021-04-23)
v0.9.1 by
danielroe
v0.9.0 by
danielroe
v0.8.0 by
danielroe
0.8.0 (2021-03-31)
⚠ BREAKING CHANGES
@nuxtjs/sanity/module
is now how the module should be imported innuxt.config
Features
- support sanity
apiVersion
option (6a2c956)
Bug Fixes
- add entrypoint for pre-exports support (a053822)
Code Refactoring
v0.7.1 by
danielroe
v0.7.0 by
danielroe
0.7.0 (2021-01-31)
⚠ BREAKING CHANGES
- change minimum supported node version to 12
Bug Fixes
Miscellaneous Chores
- change minimum supported node version to 12 (adcde28)
v0.6.1 by
danielroe
v0.5.0 by
danielroe
v0.4.2 by
danielroe
v0.4.0 by
danielroe
v0.3.10 by
danielroe
Features
- make POST requests for large queries (12c7bb1), closes /www.sanity.io/docs/http-query#the-post-form-J0Wj7
Performance Improvements
- use built-in if available (0da5573)