tRPCttRPC
Powered by
AlephA
tRPC•2y ago•
2 replies
Aleph

1 trpc api server for 1 or many clients.

I'm a beginner, working on two monorepo projects that resides on the same folder, each of which with trpc (next) already setup. Both projects basically uses the same api, and what I've been doing currently is manually copying the routes from one project to another and run the server on the project where i'm running the client.

I wanted to run the server on one project and have the other project connect to it as well, so I would no longer keep on switching servers cause most of the time I need the clients of two projects to run at the same time. Is this feasible, and if so, what's the optimal approach?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Private API, public clients
jgouxJjgoux / ❓-help
3y ago
Multiple Clients/Services In tRPC Context
isaac_wayIisaac_way / ❓-help
4y ago
Multiple TRPC endpoints on same API, with discrete clients? Any gotchas?
nikfpNnikfp / ❓-help
3y ago
Using tRPC for server to server requests
21Vic221Vic / ❓-help
3y ago