[HOW TO?] Call trpc endpoints from vanilla nextJs api routes
Spinoff from an og thread here:
https://discordapp.com/channels/867764511159091230/1032301198990135347
HI! I am wanting to do the same thing...call a trpc route from within a nextjs public api endpoint.
I am using a fresh t3-turbo-with-clerk project which has trpc in packages/api (@acme/api)
here is my apps/nextjs/src/pages/api/post.ts file
https://discordapp.com/channels/867764511159091230/1032301198990135347
HI! I am wanting to do the same thing...call a trpc route from within a nextjs public api endpoint.
I am using a fresh t3-turbo-with-clerk project which has trpc in packages/api (@acme/api)
here is my apps/nextjs/src/pages/api/post.ts file