This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-20 22:19:36 +02:00
parent 4576453aef
commit 15e29edaa7
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
*
* We also create a few inference helpers for input and output types.
*/
import { httpBatchLink, loggerLink } from "@trpc/client";
import { httpBatchLink, httpLink, loggerLink } from "@trpc/client";
import { createTRPCNext } from "@trpc/next";
import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server";
import superjson from "superjson";
@@ -48,7 +48,7 @@ export const api = createTRPCNext<AppRouter>({
process.env.NODE_ENV === "development" ||
(opts.direction === "down" && opts.result instanceof Error),
}),
httpBatchLink({
httpLink({
url: `${getBaseUrl()}/api/trpc`,
}),
],