set max url length (trpc batch)
This commit is contained in:
@@ -35,6 +35,7 @@ function AllProviders({ children }: { children: React.ReactNode }) {
|
|||||||
transformer: superjson,
|
transformer: superjson,
|
||||||
links: [
|
links: [
|
||||||
unstable_httpBatchStreamLink({
|
unstable_httpBatchStreamLink({
|
||||||
|
maxURLLength: 4000,
|
||||||
url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`,
|
url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`,
|
||||||
async headers() {
|
async headers() {
|
||||||
const token = await getToken();
|
const token = await getToken();
|
||||||
@@ -45,13 +46,6 @@ function AllProviders({ children }: { children: React.ReactNode }) {
|
|||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
// fetch(url, options) {
|
|
||||||
// return fetch(url, {
|
|
||||||
// ...options,
|
|
||||||
// credentials: 'include',
|
|
||||||
// mode: 'cors',
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user