tRPCttRPC
Powered by
Ahmed EidA
tRPC•12mo ago•
2 replies
Ahmed Eid

Nextjs Proxy an exteral TRPC api via pages/api/trpc/[trpc].ts ?

I have an already built TRPC api and I would like to use it in my nextjs application. I would like to proxy it from the [trpc].ts.

I have tried
http-proxy-middleware
http-proxy-middleware
which works but it break sometime which is a bit difficult to debug. wondering if there is an example or some doucmentation around this use case ?
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

Shorten /app/api/trpc/[trpc]/route.ts
functiondjFfunctiondj / ❓-help
5mo ago
TRPC on nextjs edge and cloudflare pages
Answer OverflowAAnswer Overflow / ❓-help
11mo ago
PersistQueryClientProvider in tRPC NextJS pages router app
Answer OverflowAAnswer Overflow / ❓-help
3y ago
createCaller from API NextJS (Pages Directory)
halfmoonHhalfmoon / ❓-help
3y ago