TkDodo 🔮T
tRPC4y 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?