mirror of
https://github.com/stoatchat/service-admin-panel.git
synced 2026-06-30 21:47:56 -04:00
24 lines
508 B
JavaScript
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;
|