diff --git a/docs/content/1.get-started/1.installation.md b/docs/content/1.get-started/1.installation.md index 0f96c70..5ad0f01 100644 --- a/docs/content/1.get-started/1.installation.md +++ b/docs/content/1.get-started/1.installation.md @@ -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 diff --git a/docs/content/1.get-started/2.usage.md b/docs/content/1.get-started/2.usage.md index 8c269b2..40f1918 100644 --- a/docs/content/1.get-started/2.usage.md +++ b/docs/content/1.get-started/2.usage.md @@ -88,15 +88,14 @@ If you need to split your router into several subrouters, you can implement them ## 2. Create tRPC client plugin -Create a set of strongly-typed composables using your API's type signature. +Create a strongly-typed plugin using your API's type signature. ```ts [plugins/client.ts] -import { httpBatchLink } from '@trpc/client' -import { createTRPCNuxtProxyClient } from 'trpc-nuxt/client' +import { httpBatchLink, createTRPCProxyClient } from '@trpc/client' import type { AppRouter } from '@/server/trpc/routers' export default defineNuxtPlugin(() => { - const client = createTRPCNuxtProxyClient({ + const client = createTRPCProxyClient({ links: [ httpBatchLink({ /** @@ -122,19 +121,10 @@ export default defineNuxtPlugin(() => { ```