diff --git a/src/plugins/client.ts b/src/plugins/client.ts index e8fd0e34..1a8fc598 100644 --- a/src/plugins/client.ts +++ b/src/plugins/client.ts @@ -1,4 +1,4 @@ -import { createTRPCNuxtClient, httpBatchLink, httpLink } from 'trpc-nuxt/client' +import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client' import { transformer } from '~/server/trpc/transformer' import type { AppRouter } from '~/server/trpc/routers' @@ -6,9 +6,6 @@ export default defineNuxtPlugin(() => { const client = createTRPCNuxtClient({ transformer, links: [ - httpLink({ - url: '/api/trpc', - }), httpBatchLink({ url: '/api/trpc', maxURLLength: 2083, // a suitable size