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();