From 0bb334c4a798110a1fa5f3e7f59490b7d08a20fe Mon Sep 17 00:00:00 2001 From: arily Date: Fri, 27 Oct 2023 17:47:17 +0900 Subject: [PATCH] use batch link --- src/plugins/client.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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