Skip to content

Easily connect your Nuxt.js application to your content hosted on Prismic

License

Notifications You must be signed in to change notification settings

webscopeio/prismic-module

 
 

Repository files navigation

@nuxtjs/prismic

npm version npm downloads Github Actions CI Codecov License

@nuxtjs/prismic helps you connect your Nuxt.js application to your content hosted on Prismic

Features

  • Add Prismic to your Nuxt app in seconds
  • Access Prismic SDK with $prismic
  • Prismic previews supported, check out the demo!
  • Compact configuration

📖  Read the documentation

Setup

  1. Add @nuxtjs/prismic dependency to your project:
yarn add @nuxtjs/prismic # or npm install @nuxtjs/prismic
  1. Then, add @nuxtjs/prismic to the buildModules section of nuxt.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!
  }
}

Development

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

License

MIT License

Thanks to James Pegg for the initial implementation of the module!

About

Easily connect your Nuxt.js application to your content hosted on Prismic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.5%
  • Vue 32.5%