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?
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?