mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
update installation
This commit is contained in:
@@ -21,6 +21,14 @@ yarn add @trpc/server @trpc/client trpc-nuxt zod
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
```ts [nuxt.config.ts]
|
||||||
|
export default defineNuxtConfig({
|
||||||
|
build: {
|
||||||
|
transpile: ['trpc-nuxt/client']
|
||||||
|
}
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
#### Why @trpc/server?
|
#### Why @trpc/server?
|
||||||
|
|
||||||
For implementing tRPC endpoints and routers.
|
For implementing tRPC endpoints and routers.
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
build: {
|
||||||
|
transpile: ['trpc-nuxt/client']
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user