From a2225648a2a03887b2c6dba157257bb3099d4ef8 Mon Sep 17 00:00:00 2001 From: kamtschatka 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/cli/src/lib/trpc.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/cli') diff --git a/apps/cli/src/lib/trpc.ts b/apps/cli/src/lib/trpc.ts index aa7aec21..27082b10 100644 --- a/apps/cli/src/lib/trpc.ts +++ b/apps/cli/src/lib/trpc.ts @@ -10,6 +10,7 @@ export function getAPIClient() { links: [ httpBatchLink({ url: `${globals.serverAddr}/api/trpc`, + maxURLLength: 14000, transformer: superjson, headers() { return { -- cgit v1.2.3-70-g09d2