rob.g
rob.g
TtRPC
Created by rob.g on 12/19/2023 in #❓-help
tRPC on Vercel Serverless without Next?
I would love to be able to use tRPC in a vercel serverless context, but not in a Next app – just the /api folder. The @trpc/next adapter seems to be based on the path expansion properties of next ( /api/[trpc]), so I'm not what the best strategy is for using tRPC in a non-next project on vercel. I had a look at the vercel-edge-runtime example but that seems to be at a lower level (using the raw edge-runtime package) than what the vercel platform expects in the /api folder. If anyone has done this before and has guidance for me I would really appreciate it. Thanks!
2 replies