tRPCttRPC
Powered by
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?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

[HOW TO?] Call trpc endpoints from vanilla nextJs api routes
LaunchThat.AppLLaunchThat.App / โ“-help
3y ago
calling api endpoints from within a trpc api endpoint?
rustclanRrustclan / โ“-help
4y ago
Can't build NextJS with TRPC vanilla client.
Oung SeikOOung Seik / โ“-help
12mo ago
Call multiple TRPC endpoints from onSuccess()?
peternovakPpeternovak / โ“-help
3y ago