kill batching link for now
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user