Scheduling infrastructure for absolutely everyone.
re-enable batching (#1199)
Alex Johansson644b0f1b0e6f
diff --git a/pages/_app.tsx b/pages/_app.tsxindex 037850cd1eb..c65bf95e933 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 { httpLink } from "@trpc/client/links/httpLink";+import { httpBatchLink } from "@trpc/client/links/httpBatchLink";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<AppRouter>({process.env.NODE_ENV === "development" ||(opts.direction === "down" && opts.result instanceof Error),}),- httpLink({+ httpBatchLink({url: `/api/trpc`,}),],