From 58f55f84e28533f2d500a631e20b40113e0406fe Mon Sep 17 00:00:00 2001 From: Alex Johansson Date: Wed, 24 Nov 2021 10:53:03 +0100 Subject: [PATCH] temporarily disable batching (#1197) --- pages/_app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/_app.tsx b/pages/_app.tsx index c65bf95e93..037850cd1e 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -7,7 +7,7 @@ import { seoConfig } from "@lib/config/next-seo.config"; import I18nLanguageHandler from "@components/I18nLanguageHandler"; import type { AppRouter } from "@server/routers/_app"; -import { httpBatchLink } from "@trpc/client/links/httpBatchLink"; +import { httpLink } from "@trpc/client/links/httpLink"; import { loggerLink } from "@trpc/client/links/loggerLink"; import { withTRPC } from "@trpc/next"; import type { TRPCClientErrorLike } from "@trpc/react"; @@ -44,7 +44,7 @@ export default withTRPC({ process.env.NODE_ENV === "development" || (opts.direction === "down" && opts.result instanceof Error), }), - httpBatchLink({ + httpLink({ url: `/api/trpc`, }), ],