From 88a69cb01672c835f8d9529f84ec28d60cd5d0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Wed, 22 May 2024 13:27:21 +0200 Subject: [PATCH] kill batching link for now --- apps/dashboard/src/app/providers.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/app/providers.tsx b/apps/dashboard/src/app/providers.tsx index 84ed1d35..0f44a45a 100644 --- a/apps/dashboard/src/app/providers.tsx +++ b/apps/dashboard/src/app/providers.tsx @@ -8,7 +8,7 @@ import makeStore from '@/redux'; import { api } from '@/trpc/client'; import { ClerkProvider, useAuth } from '@clerk/nextjs'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; -import { unstable_httpBatchStreamLink } from '@trpc/client'; +import { httpLink } from '@trpc/client'; import { ThemeProvider } from 'next-themes'; import { Provider as ReduxProvider } from 'react-redux'; import { Toaster } from 'sonner'; @@ -34,8 +34,7 @@ function AllProviders({ children }: { children: React.ReactNode }) { api.createClient({ transformer: superjson, links: [ - unstable_httpBatchStreamLink({ - maxURLLength: 4000, + httpLink({ url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`, async headers() { const token = await getToken();