20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
net: false,
|
|
tls: false,
|
|
fs: false,
|
|
dns: false,
|
|
child_process: false,
|
|
http2: false,
|
|
module: false,
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |