Configuration
Module options are supplied through the prismic property in your Nuxt config.
nuxt.config.ts
import { defineNuxtConfig } from 'nuxt3'
export default defineNuxtConfig({
prismic: {
/* configuration */
},
});Overview
| Key | Type | Default | Description |
|---|---|---|---|
...PrismicPluginOptions | object | {} | Options provided to Prismic Vue plugin, see section below for more details. |
client | string | ~/app/prismic/client | Path to an optional file exporting an @prismicio/client instance for the module to use. |
linkResolver | string | ~/app/prismic/linkResolver | Path to an optional file exporting a Link Resolver for the module to use. |
richTextSerializer | string | ~/app/prismic/richTextSerializer | Path to an optional file exporting a HTML Serializer for the module to use. |
preview | string | false | /preview | The route to use for the preview page, disable previews with false. |
toolbar | boolean | true | Whether or not to inject Prismic toolbar, required for previews to work properly. |
...PrismicPluginOptions
This module is essentially a drop-in integration of @prismicio/vue plugin, fine-tuned for Nuxt. In that regard it inherits from most of @prismicio/vue options. Please refer to @prismicio/vue documentation to discover available options inherited from the plugin.
⚠
client, linkResolver, and richTextSerializer options are replaced, see above.