From f2c3c2fab433a731da12ab6c1c83a6dfcfbd804b Mon Sep 17 00:00:00 2001 From: Emile Caron Date: Thu, 11 May 2023 12:03:26 +0200 Subject: [PATCH] docs: add missing step migrating to `pinia` (#20778) --- docs/7.migration/2.configuration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/7.migration/2.configuration.md b/docs/7.migration/2.configuration.md index a70dedbc1d..f2d6149d3f 100644 --- a/docs/7.migration/2.configuration.md +++ b/docs/7.migration/2.configuration.md @@ -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]