@nuxtjs/sanity
Sanity 集成 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
阅读更多
Quick setup
- Add
@nuxtjs/sanity
dependency to your project
yarn add @nuxtjs/sanity # or npm install @nuxtjs/sanity
- Add
@nuxtjs/sanity/module
to the buildModules
section of nuxt.config.js
{
buildModules: [
'@nuxtjs/sanity/module',
],
sanity: {
// module options
}
}
Development
- Clone this repository
- Install dependencies using
yarn install
- Start development server using
yarn dev
License
MIT 许可证
@nuxtjs/sanity
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
- Add
@nuxtjs/sanity
dependency to your project
yarn add @nuxtjs/sanity # or npm install @nuxtjs/sanity
- Add
@nuxtjs/sanity/module
to the buildModules
section of nuxt.config.js
{
buildModules: [
'@nuxtjs/sanity/module',
],
sanity: {
// module options
}
}
Development
- Clone this repository
- Install dependencies using
yarn install
- Start development server using
yarn dev
License
MIT License