niko
Explore posts from serversBuilding CLI tool for trpc for type generation
I'm building trpc types cli tool for my use case. i use nextjs for api and i want to implement same functionality in another nextjs app without copy pasting whole api folder to that one, i already made type generation tool just testing around if it will work
this is what main nextjs api
/api/trpc/[trpc]/route.ts
code looks like, im allowing to bypass cors issue when making request from another nextjs app in my case localhost:3000
is main and localhost:3001
is second
8 replies