Files
2025-08-18 18:31:29 +08:00

22 lines
493 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['ui', 'ui-patterns'],
webpack: (config, { dev, isServer, webpack, nextRuntime }) => {
config.module.rules.push({
test: /\.node$/,
use: [
{
loader: 'nextjs-node-loader',
options: {
includeWebpackPublicPath: false,
outputPath: config.output.path,
},
},
],
})
return config
},
}
module.exports = nextConfig