docs: update usage

This commit is contained in:
wobsoriano
2022-11-12 20:15:52 -08:00
parent 0f9653d1a4
commit 297c3d52f4
2 changed files with 5 additions and 27 deletions

View File

@@ -5,8 +5,6 @@ description: tRPC-Nuxt provides first class integration with tRPC.
# Installation
## 1. Add to existing Nuxt project
::code-group
```bash [pnpm]
@@ -35,16 +33,6 @@ For making typesafe API calls from your client.
Most examples use [Zod](https://github.com/colinhacks/zod) for input validation and tRPC.io highly recommends it, though it isn't required.
## 2. Install module
This will transpile `trpc-nuxt` and exclude `trpc-nuxt/client` from optimized dependencies by Vite.
```ts [nuxt.config.ts]
export default defineNuxtConfig({
modules: ['trpc-nuxt/module']
})
```
::
## Next Steps