nico
nico
DTDrizzle Team
Created by nico on 11/9/2023 in #help
How to use drizzle-zod generated schemas in Next.JS frontend?
My solution was to edit next.config.js with this:
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.alias["net"] = false;
config.resolve.alias["tls"] = false;
config.resolve.alias["fs"] = false;
}
return config;
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.alias["net"] = false;
config.resolve.alias["tls"] = false;
config.resolve.alias["fs"] = false;
}
return config;
},
3 replies