TkDodo ๐Ÿ”ฎT
tRPCโ€ข4y agoโ€ข
25 replies
TkDodo ๐Ÿ”ฎ

calling trpc endpoints from vanilla nextJs api routes

I'm struggling to find what's the best way to call a trpc endpoint directly from the server. Basically, I have a nextjs api endpoint where I want to call another endpoin that lives in trpc.
would I need to create a trpcProxyClient? If so, would it have access to the context?
Was this page helpful?