How to use drizzle-zod generated schemas in Next.JS frontend?
I'm currently using the pages dir in Next.JS and I have a function making an API call. I want to pass the returned body into the generated zod schema using zod and drizzle-zod. The problem is, when I import any created schema, I receive this error:
This leads me to believe that I can't use my zod schemas because they depend on the drizzle table created with pgTable, which relies on
net
. Is there a way around this?2 Replies
did u find the answer to this @nico ?
My solution was to edit next.config.js with this: