Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 2.23 KB

README.md

File metadata and controls

69 lines (51 loc) · 2.23 KB

@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!