mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: add missing step migrating to pinia
(#20778)
This commit is contained in:
parent
6b710811bd
commit
f2c3c2fab4
@ -142,6 +142,16 @@ Install the [@pinia/nuxt](https://nuxt.com/modules/pinia) module:
|
||||
yarn add pinia @pinia/nuxt
|
||||
```
|
||||
|
||||
Enable the module in your nuxt configuration:
|
||||
|
||||
```ts [nuxt.config.ts]
|
||||
import { defineNuxtConfig } from 'nuxt/config';
|
||||
|
||||
export default defineNuxtConfig({
|
||||
modules: ['@pinia/nuxt']
|
||||
})
|
||||
```
|
||||
|
||||
Create a `store` folder at the root of your application:
|
||||
|
||||
```ts [store/index.ts]
|
||||
|
Loading…
Reference in New Issue
Block a user