Skip to content

Commit

Permalink
docs: fix typo buildModules to modules for nuxt3 (vuejs#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
SathishVM authored Aug 17, 2022
1 parent 16b2c97 commit d69e2cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docs/ssr/nuxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand All @@ -61,7 +61,7 @@ export default {
},
],
],
}
})
```

## Nuxt 2 without bridge
Expand Down

0 comments on commit d69e2cb

Please sign in to comment.