Merge branch 'main' into katt/cal-620-edge-fns

proto/trying-alternative-approach
kodiakhq[bot] 2021-11-24 11:45:56 +00:00 committed by GitHub
commit 4f7175edc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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`,
}),
],