Ahmed Eid
Ahmed Eid2w ago

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 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 ?
1 Reply
Ahmed Eid
Ahmed EidOP2w ago
both my nexjs app and api are inside a monorepo.

Did you find this page helpful?