Difference between createTRPCNextAppDirServer, createTRPCNext and createTRPCProxyClient?

Hey everyone. I struggle to understand the difference between these 3 TRPC functions when it come to using it in server.ts to be able to make server side API calls. I'm using NextJS 14 and app router. Is there clear differentiation between these 3? This project is for a production release. Would greatly appreciate a little break down. Thanks!
2 Replies
ziN
ziN12mo ago
Do you know the difference between createTRPCProxyClient<AppRouter> and appRouter.createCaller ?
Ignition 98
Ignition 9812mo ago
@ziN as far as I understand, createTRPCProxyClient<AppRouter> is used to create a client that can call any procedure defined in the AppRouter type. appRouter.createCaller on the other hand, is used to create a caller for a specific procedure that the client wants to call. Don't get what you're trying to say.
Want results from more Discord servers?
Add your server