sanity.config.ts
- no additional configuration required@nuxtjs/sanity
dependency to your projectnpx nuxi@latest module add sanity
@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.
pnpm install
pnpm dev:prepare
pnpm dev