diff --git a/docs/content/2.setup.md b/docs/content/2.setup.md index c1143cac..2c73febf 100644 --- a/docs/content/2.setup.md +++ b/docs/content/2.setup.md @@ -5,25 +5,13 @@ description: Learn how to setup strapi module in your Nuxt 3 application. ## Installation -Add `@nuxtjs/strapi` dev dependency to your project: +1. Add `@nuxtjs/strapi` module to your project: -::code-group - -```bash [pnpm] -pnpm add @nuxtjs/strapi -``` - -```bash [yarn] -yarn add @nuxtjs/strapi +```bash +npx nuxi@latest module add strapi ``` -```bash [npm] -npm install @nuxtjs/strapi -``` - -:: - -Then, add `@nuxtjs/strapi` to the [`modules`](https://nuxt.com/docs/api/configuration/nuxt-config#modules) section of your Nuxt configuration: +2. Add it to the `modules` section in your `nuxt.config.ts`: ```ts [nuxt.config.ts] export default defineNuxtConfig({