Skip to content

Commit b61cfea

Browse files
committed
fix: trpc client plugin transformer
1 parent 8c88fe8 commit b61cfea

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/configs/trpc.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ export default defineNuxtPlugin(() => {
8989
* built on top of \`useAsyncData\`.
9090
*/
9191
const client = createTRPCNuxtClient<AppRouter>({
92-
transformer: superjson,
9392
links: [
9493
httpBatchLink({
95-
url: '/api/trpc'
94+
url: '/api/trpc',
95+
transformer: superjson
9696
})
9797
]
9898
})
@@ -126,18 +126,18 @@ const hello = await $client.hello.useQuery({ text: 'client' })
126126
`
127127

128128
const trpc: ModuleConfig = {
129-
humanReadableName: 'tRPC 10',
129+
humanReadableName: 'tRPC',
130130
description: 'Build end-to-end typesafe APIs in Nuxt applications. See more: https://trpc.io/',
131131
scripts: [],
132132
dependencies: [
133133
{
134134
name: '@trpc/server',
135-
version: '^11.5.1',
135+
version: '^11.6.0',
136136
isDev: false
137137
},
138138
{
139139
name: '@trpc/client',
140-
version: '^11.5.1',
140+
version: '^11.6.0',
141141
isDev: false
142142
},
143143
{

0 commit comments

Comments
 (0)