Nuxt module
Options
Configuration options of the @nuxtjs/storybook Nuxt module.
Configure the Nuxt module (@nuxtjs/storybook) with the storybook property of nuxt.config.ts. These options only apply to nuxt dev: Storybook itself is configured in .storybook/.
nuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxtjs/storybook'],
storybook: {
// Default options
route: '/_storybook',
},
})
enabled: Enable or disable the module. This can be useful to control and disable storybook in layers or in extended projects.- type:
boolean - default:
true
- type:
route: The route where the Nuxt dev server serves the Storybook application.- type:
string - default:
/_storybook
- type:
logLevel: Log level for the terminal output.- type:
number - default:
nuxt.options.logLevel
- type:
Storybook runs inside the Nuxt dev server through @storybook/vite-plugin, so it shares the host, port and HTTPS settings of nuxt dev.