Skip to content
Easily integrate Sanity in your Nuxt.js project.
JavaScript Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
docs
example
lib
test
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
CHANGELOG.md
LICENSE
README.md
babel.config.js
commitlint.config.js
husky.config.js
jest.config.js
package.json
renovate.json
yarn.lock

README.md

nuxt-sanity

npm version npm downloads Circle CI Codecov Dependencies Standard JS

📖 Read documentation

Setup

  1. Add the nuxt-sanity dependency with yarn or npm to your project
yarn add nuxt-sanity // or npm install nuxt-sanity
  1. Add nuxt-sanity to the modules section of nuxt.config.js
{
  modules: [
    'nuxt-sanity'
  ]
}
  1. Configure the module:
{
  modules: [
    // Simple usage
    'nuxt-sanity',

    // With inline options
    ['nuxt-sanity', { /* module options */ }]
  ],
  // Or a Sanity object
  sanity: {
    projectId: '', // string, required
    dataset: '', // string, required
    token: '', // string, optional
    useCdn: false // boolean, optional, default is false
  }
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

You can’t perform that action at this time.