is it possible to use trpc on next js api routes
like can i use trpc mutation or query on
/api/test
2 Replies
Server Side Calls | tRPC
You may need to call your procedure(s) directly from the same server they're hosted in, router.createCaller() can be used to achieve this.
Thanks man 🙏