Share drizzle-zod schemas with the frontend

I'm wondering how I should use drizzle-zod generated schemas without leaking the actual implementation of my tables to the frontend? I'm assuming by exporting drizzle-zod schema's and letting the frontend consume them, I'm actually bundling the definitions inside of my FE as well. Is there a way to avoid this? Or frankly, should I not care?
1 Reply
bret_pat
bret_patOP2y ago
Seems like there has been a couple dicussions, but nobody has really mentioned the security implications (if there are any)
Want results from more Discord servers?
Add your server