]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: fix typo buildModules to modules for nuxt3 (#1554)
authorSathish <sathishvm37@gmail.com>
Wed, 17 Aug 2022 09:00:30 +0000 (14:30 +0530)
committerGitHub <noreply@github.com>
Wed, 17 Aug 2022 09:00:30 +0000 (11:00 +0200)
packages/docs/ssr/nuxt.md

index df302f12db0ea57a7393ffe6a2c55668f68a4b0d..90e6c62981cad917d7cc7ab246cd2595bfd13eaa 100644 (file)
@@ -10,7 +10,7 @@ yarn add @pinia/nuxt
 npm install @pinia/nuxt
 ```
 
-We supply a _module_ to handle everything for you, you only need to add it to `buildModules` in your `nuxt.config.js` file:
+We supply a _module_ to handle everything for you, you only need to add it to `modules` in your `nuxt.config.js` file:
 
 ```js
 // nuxt.config.js
@@ -45,9 +45,9 @@ By default `@pinia/nuxt` exposes one single auto import: `usePinia()`, which is
 
 ```js
 // nuxt.config.js
-export default {
+export default defineNuxtConfig({
   // ... other options
-  buildModules: [
+  modules: [
     // ...
     [
       '@pinia/nuxt',
@@ -61,7 +61,7 @@ export default {
       },
     ],
   ],
-}
+})
 ```
 
 ## Nuxt 2 without bridge