Repos contain server only code that should never be imported into client code. ZOD schemas and Prisma Selects have historically lived within the Repos but are necessary for client side logic. The zod schemas and select factories are now separated out and live in lib but the repos live in lib/server which cannot be imported by client code.
Repos contain server only code that should never be imported into client code. ZOD schemas and Prisma Selects have historically lived within the Repos but are necessary for client side logic. The zod schemas and select factories are now separated out and live in
lib
but the repos live inlib/server
which cannot be imported by client code.