craftzcodeC
tRPC12mo 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
for
tRPC
example
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
and for the
tRPC caller for Server Components
which is the
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
.
Was this page helpful?