17 lines
438 B
JavaScript
17 lines
438 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
webpack: (config, { isServer }) => {
|
|
// Handle node: protocol imports
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
buffer: require.resolve('buffer/'),
|
|
stream: require.resolve('stream-browserify'),
|
|
util: require.resolve('util/'),
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |