/** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", // Custom Webpack configuration webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { // Add the node-loader for handling .node files config.module.rules.push({ test: /\.node$/, loader: 'node-loader', }); // Return the modified config return config; }, } module.exports = nextConfig