ChatGPT-Next-Web/next.config.js
[witbox2018] b580de32a3 4
2023-04-07 16:36:11 +08:00

23 lines
414 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
disableExperimentalFeaturesWarning: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
}); // 针对 SVG 的处理规则
return config;
}
};
if (process.env.DOCKER) {
nextConfig.output = 'standalone'
}
module.exports = nextConfig;