Server Side Calls with trpc app directory
I'm trying to expose a trpc route to call it with fetch, but I'm obviously doing something wrong. previously we could but since the app directory release
createTRPCContext
uses NextRequest. has anyone been able to expose a trpc router in a nextjs api route?1 Reply
I do then then something like Don't think this is exactly what you're looking for, but maybe? If ya can provide more information and perhaps a repo I can take a look tm.