tRPCttRPC
Powered by
craftzcodeC
tRPC•12mo ago
craftzcode

What is the best approach when using monorepo with tTPC

What is the best approach when configuring tRPC inside of monorepo? I would like it to be used in Next.js, I create an
internal library
internal library
for
tRPC
tRPC
example
packages/api
packages/api
so I can call it anywhere in monorepo, now I would like to know where exactly is the best place for the
client.tsx
client.tsx
and for the
tRPC caller for Server Components
tRPC caller for Server Components
which is the
server.tsx
server.tsx
can I place it also inside of the internal library of tRPC or I will place it inside of Next.js which is on
apps/web
apps/web
.
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

what is the best way to update trpc and its dependencies?
CaptainCCaptain / ❓-help
3y ago