createTRPCProxyClient
httpBatchLink
export const createTRPCServerClient = async () => { const authToken = ""; // Grab from cookies return createTRPCProxyClient<AppRouter>({ transformer: superjson, links: [ httpBatchLink({ url: "http://your-url.com/api/trpc", headers: { ...(authToken ? { authorization: `Bearer ${authToken}` } : {}), }, }), ], });};