ChatGPT-Next-Web/next.config.mjs

21 lines
369 B
JavaScript

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