kill batching link for now

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-22 13:27:21 +02:00
parent c90848765a
commit 88a69cb016

View File

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