Skip to content

API Documentation / @pinia/nuxt / ModuleOptions

Interface: ModuleOptions

@pinia/nuxt.ModuleOptions

Properties

disableVuex

Optional disableVuex: boolean

Pinia disables Vuex by default, set this option to false to avoid it and use Pinia alongside Vuex (Nuxt 2 only)

Default

true


storesDirs

Optional storesDirs: string[]

Automatically add stores dirs to the auto imports. This is the same as directly adding the dirs to the imports.dirs option. If you want to also import nested stores, you can use the glob pattern ./stores/**

Default

['stores']

湘ICP备2024070110号