Skip to content

Commit

Permalink
docs: update installation.md (#955)
Browse files Browse the repository at this point in the history
* docs: update installation.md, @sidebase/nuxt-auth should be installed as regular dep

@sidebase/nuxt-auth should be installed as a regular dependency instead of a dev dependency. Also added additional scripts for yarn and pnpm

* revert to dev dep

* Update docs/guide/getting-started/installation.md

* Update docs/guide/getting-started/installation.md

---------

Co-authored-by: Marsel Shaikhin <[email protected]>
  • Loading branch information
s0h311 and phoenix-ru authored Dec 19, 2024
1 parent 985c497 commit 0d9ae7a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/guide/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@

You can install NuxtAuth using nuxi:

```bash
npx nuxi@latest module add sidebase-auth
::: code-group

```bash [npm]
npx nuxi module add sidebase-auth
```

```bash [pnpm]
pnpm exec nuxi module add sidebase-auth
```

```bash [yarn]
yarn dlx nuxi module add sidebase-auth
```

:::

::: details Manual installation

::: code-group
Expand All @@ -19,7 +31,7 @@ pnpm i -D @sidebase/nuxt-auth
```

```bash [yarn]
yarn add --dev @sidebase/nuxt-auth
yarn add -D @sidebase/nuxt-auth
```

:::
Expand All @@ -31,7 +43,7 @@ Add NuxtAuth to your `nuxt.config`:
```ts [nuxt.config.ts]
export default defineNuxtConfig({
modules: [
'@sidebase/nuxt-auth',
'@sidebase/nuxt-auth'
],
})
```
Expand Down

0 comments on commit 0d9ae7a

Please sign in to comment.