docs: add missing step migrating to pinia (#20778)

This commit is contained in:
Emile Caron 2023-05-11 12:03:26 +02:00 committed by GitHub
parent 6b710811bd
commit f2c3c2fab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]