Files
2024-08-31 17:12:39 +01:00

24 lines
508 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
reactCompiler: true,
},
webpack: (config, { dev, isServer, webpack, nextRuntime }) => {
config.module.rules.push({
test: /\.node$/,
use: [
{
loader: "nextjs-node-loader",
options: {
// flags: os.constants.dlopen.RTLD_NOW,
outputPath: config.output.path,
},
},
],
});
return config;
},
};
module.exports = nextConfig;