Emma12812
Emma128127mo ago

Using trpc backend across multiple seperate front ends

I want to create a nodejs backend with trpc to expose some api endpoints. This will then be called across multiple different frontend react apps. How do I ensure type safety if they are in different repos?
1 Reply
Nick
Nick7mo ago
You can build a client package with the types distributed in, or use trpc-openapi to help generate clients But in general trpc is at its best in a monorepo