t
tRPC
t
tRPC
Is it possible to host trpc/client in a different server and trpc/server in a different server.
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
2/23/23, 8:35 AM
Do you mean a different server or a different codebase
?
N
Nick
•
2/23/23, 8:36 AM
It
’s normal for them to exist in different applications
, you just set up your monorepo to let your frontend import the types from the backend
, which is usually just a case of doing the type import and typescript figures the rest out
N
Nick
•
2/23/23, 9:32 AM
Have a look at the examples in the docs
, they
’re almost all set up this way