@nuxtjs/prismic helps you connect your Nuxt.js application to your content hosted on Prismic
- Add Prismic to your Nuxt app in seconds
- Access Prismic SDK with
$prismic
- Prismic previews supported, check out the demo!
- Compact configuration
- Add
@nuxtjs/prismic
dependency to your project:
yarn add @nuxtjs/prismic # or npm install @nuxtjs/prismic
- Then, add
@nuxtjs/prismic
to thebuildModules
section ofnuxt.config.js
and configure your Prismic API endpoint:
{
buildModules: [
'@nuxtjs/prismic',
],
prismic: {
endpoint: 'https://<REPOSITORY>.cdn.prismic.io/api/v2',
modern: true
// see documentation for more!
}
}
- Clone this repository
- Install dependencies using
yarn install
- Start development server using
yarn dev
Thanks to James Pegg for the initial implementation of the module!