From: Rednas Date: Mon, 13 Feb 2023 14:24:40 +0000 (+0100) Subject: docs(nuxt): fix options (#1997) X-Git-Tag: @pinia/nuxt@0.4.7~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fd4098791f8f8edbab328fd326460ba7a4ee96d;p=thirdparty%2Fvuejs%2Fpinia.git docs(nuxt): fix options (#1997) Co-authored-by: Eduardo San Martin Morote --- diff --git a/packages/docs/ssr/nuxt.md b/packages/docs/ssr/nuxt.md index 863f7517..c1fd41cd 100644 --- a/packages/docs/ssr/nuxt.md +++ b/packages/docs/ssr/nuxt.md @@ -67,20 +67,14 @@ By default `@pinia/nuxt` exposes one single auto import: `usePinia()`, which is // nuxt.config.js export default defineNuxtConfig({ // ... other options - modules: [ - // ... - [ - '@pinia/nuxt', - { - autoImports: [ - // automatically imports `defineStore` - 'defineStore', // import { defineStore } from 'pinia' - // automatically imports `defineStore` as `definePiniaStore` - ['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia' - ], - }, + modules: ['@pinia/nuxt'], + pinia: { + autoImports: [ + // automatically imports `defineStore` + 'defineStore', // import { defineStore } from 'pinia' + ['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia' ], - ], + }, }) ```