From b91e0d0aa98654716d1b272d4a132e240f7a4a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Mon, 13 May 2024 16:08:22 +0200 Subject: [PATCH] set max url length (trpc batch) --- apps/dashboard/src/app/providers.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/dashboard/src/app/providers.tsx b/apps/dashboard/src/app/providers.tsx index 1f00362a..717dffa2 100644 --- a/apps/dashboard/src/app/providers.tsx +++ b/apps/dashboard/src/app/providers.tsx @@ -35,6 +35,7 @@ function AllProviders({ children }: { children: React.ReactNode }) { transformer: superjson, links: [ unstable_httpBatchStreamLink({ + maxURLLength: 4000, url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`, async headers() { const token = await getToken(); @@ -45,13 +46,6 @@ function AllProviders({ children }: { children: React.ReactNode }) { } return {}; }, - // fetch(url, options) { - // return fetch(url, { - // ...options, - // credentials: 'include', - // mode: 'cors', - // }); - // }, }), ], })