kumard3
kumard32y 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
samme2y 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
kumard3OP2y ago
Thanks man 🙏

Did you find this page helpful?