diff --git a/apps/web/src/trpc/client.ts b/apps/web/src/trpc/client.ts index cdce2f8a76..3fd47a0092 100644 --- a/apps/web/src/trpc/client.ts +++ b/apps/web/src/trpc/client.ts @@ -1,10 +1,10 @@ -import { createTRPCProxyClient, loggerLink } from "@trpc/client"; +import { createTRPCClient, loggerLink } from "@trpc/client"; import type { AppRouter } from "@openstatus/api"; import { endingLink } from "./shared"; -export const api = createTRPCProxyClient({ +export const api = createTRPCClient({ links: [ loggerLink({ enabled: (opts) => diff --git a/apps/web/src/trpc/server.ts b/apps/web/src/trpc/server.ts index 57a4819469..69d2e3e6ed 100644 --- a/apps/web/src/trpc/server.ts +++ b/apps/web/src/trpc/server.ts @@ -1,11 +1,11 @@ -import { createTRPCProxyClient, loggerLink } from "@trpc/client"; +import { createTRPCClient, loggerLink } from "@trpc/client"; import { headers } from "next/headers"; import type { AppRouter } from "@openstatus/api"; import { endingLink } from "./shared"; -export const api = createTRPCProxyClient({ +export const api = createTRPCClient({ links: [ loggerLink({ enabled: (opts) =>