From a2225648a2a03887b2c6dba157257bb3099d4ef8 Mon Sep 17 00:00:00 2001
From: kamtschatka <simon.schatka@gmx.at>
Date: Sat, 13 Jul 2024 14:39:25 +0200
Subject: fix: Fix TRPC batchign failure because of long URLs. Fixes #281
 (#291)

limiting the length of the URL for batched requests to prevent 431 errors
---
 apps/web/lib/providers.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'apps/web/lib/providers.tsx')

diff --git a/apps/web/lib/providers.tsx b/apps/web/lib/providers.tsx
index 9c937281..b4066808 100644
--- a/apps/web/lib/providers.tsx
+++ b/apps/web/lib/providers.tsx
@@ -68,6 +68,7 @@ export default function Providers({
         httpBatchLink({
           // TODO: Change this to be a full URL exposed as a client side setting
           url: `/api/trpc`,
+          maxURLLength: 14000,
           transformer: superjson,
         }),
       ],
-- 
cgit v1.2.3-70-g09d2

