export const trpc = experimental_createTRPCNextAppDirServer<AppRouter>({ config() { return { transformer: superjson, links: [ loggerLink({ enabled: () => process.env.NODE_ENV === "development", }), experimental_nextHttpLink({ batch: true, url: getUrl(), headers() { return { cookie: cookies().toString(), "x-trpc-source": "rsc-http", }; }, }), ], }; },});
query
http://localhost:3000/api/trpc/getClient