1.0.4 • Published 4 years ago

nuxt-sanity-bp v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

NuxtJS Sanity Integration

This package is a module for NuxtJS that provides integration for the https://sanity.io platform.

Installing The Integration

To install the integration, simply run npm i nuxt-sanity-bp. Please note: there is currently no yarn version of this package available. However, you are free to rebuild this package yourself.

Configuring The Module

In order to begin using the module, simply add the following to your nuxt.config.js file:

modules: [
  ['nuxt-sanity-bp', {
    projectId: '--Your Project ID--',
    dataset: '--Your Dataset ID--',
    token: '--Your Token--', // Not Required. Default is '' (anonymous user)
    useCdn: true // Not Required. Default is true.
  }]
]

Using The Module

After the module is configured, the sanity object is injected into all your pages and available via. this.$sanity. From this point, you can continue to use this module as described by the sanity.io client documentation.

Contributing To This Project

If you'd like to contribute, please fork this project and submit a pull request describing the changes you've made and why you've made them. PR's are generally responded to within 72 hours. Please be patient, we appreciate your work!