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 | ~/prismic/client ( ~/app/prismic/client on Nuxt 3) | Path to an optional file exporting an @prismicio/client instance for the module to use. |
linkResolver | string | ~/prismic/linkResolver ( ~/app/prismic/linkResolver on Nuxt 3) | Path to an optional file exporting a Link Resolver for the module to use. |
richTextSerializer | string | ~/prismic/richTextSerializer ( ~/app/prismic/richTextSerializer on Nuxt 3) | 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. |
devtools | boolean | true | Whether or not to enable the devtools UI. |
...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.