Setup
This module is plug-and-play with sensible defaults. Just install the package to get started.
Installation
- Install the
nuxt-builderio
package:
pnpm add -D nuxt-builderio
- Add the
nuxt-builderio
package to themodules
array in yournuxt.config.ts
:
export default defineNuxtConfig({
modules: [
// ...
'nuxt-builderio'
],
// ...
})
Options
You may configure the nuxt-builderio
module by adding a builderIO
property to your nuxt.config.ts
:
export default defineNuxtConfig({
// Defaults
builderIO: {
autoImports: [
'fetchEntries',
'fetchOneEntry',
'fetchBuilderProps',
'isEditing',
'isPreviewing',
'setEditorSettings',
'getBuilderSearchParams',
'createRegisterComponentMessage'
],
defaultModel: 'page',
injectCss: true,
components: {
enabled: true,
dir: 'builder/components',
prefix: 'BuilderCustom'
}
}
// ...
})
Learn more about the available options in the Configuration section.
✨ You're all set! Check out the features for information on how to use the module.
Table of Contents