Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

set max url length (trpc batch)

Carl-Gerhard Lindesvärdb91e0d0aa986
diff --git a/apps/dashboard/src/app/providers.tsx b/apps/dashboard/src/app/providers.tsx
index 1f00362a2..717dffa27 100644
--- a/apps/dashboard/src/app/providers.tsx
+++ b/apps/dashboard/src/app/providers.tsx
@@ -35,6 +35,7 @@ function AllProviders({ children }: { children: React.ReactNode }) {
transformer: superjson,
links: [
unstable_httpBatchStreamLink({
+ maxURLLength: 4000,
url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`,
async headers() {
const token = await getToken();
@@ -45,13 +46,6 @@ function AllProviders({ children }: { children: React.ReactNode }) {
}
return {};
},
- // fetch(url, options) {
- // return fetch(url, {
- // ...options,
- // credentials: 'include',
- // mode: 'cors',
- // });
- // },
}),
],
})