tRPCttRPC
Powered by
Rob GordonR
tRPC•3y ago•
1 reply
Rob Gordon

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
/api
folder. The
@trpc/next
@trpc/next
adapter seems to be based on the path expansion properties of next (
/api/[trpc]
/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
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!
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Fastify + TRPC on Vercel
brumbrum_brumBbrumbrum_brum / ❓-help
2y ago
tRPC in Next without api rotes
MadaShindeInaiMMadaShindeInai / ❓-help
3y ago
ECONNREFUSED with TRPC call on Vercel
xdxd#5555 / hanyaXxdxd#5555 / hanya / ❓-help
3y ago