kumard3
kumard317mo ago

is it possible to use trpc on next js api routes

like can i use trpc mutation or query on /api/test
2 Replies
samme
samme17mo ago
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.
kumard3
kumard317mo ago
Thanks man 🙏