This commit is contained in:
JU-NINE NGU CHO 2025-04-29 10:02:19 +00:00 committed by GitHub
commit e12785db85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,9 +21,25 @@ const nextConfig = {
}
config.resolve.fallback = {
...config.resolve.fallback,
child_process: false,
process: false,
path: false,
fs: false,
os: false,
util: false,
stream: false,
buffer: require.resolve('buffer/'),
events: require.resolve('events/'),
};
config.plugins.push(
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser',
}),
);
return config;
},
output: mode,