Trying to set 'tls' and 'net' 'empty' on the client through webpack, and config.node doesn't exist on next 13.
in next.config.js I added:
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `tls,net` module
console.log(isServer);
if (!isServer) {
console.log(config);
config.node = {
tls: 'empty',
net: 'empty'
}
}
return config
}
redis is trying to find 'tls' and 'net', and I think this might be a solution.
Thank you