const client = createTRPCClient<RegistrationAppRouter>({
links: [
loggerLink({
enabled: (options) =>
(config.debug === "error" && options.direction === "down" && options.result instanceof Error) ||
config.debug === "verbose",
}),
httpLink({
url: config.url,
methodOverride: "POST",
transformer: superjson,
}),
],
})
const client = createTRPCClient<RegistrationAppRouter>({
links: [
loggerLink({
enabled: (options) =>
(config.debug === "error" && options.direction === "down" && options.result instanceof Error) ||
config.debug === "verbose",
}),
httpLink({
url: config.url,
methodOverride: "POST",
transformer: superjson,
}),
],
})