ChatGPT-Next-Web/next.config.js

20 lines
358 B
JavaScript
Raw Normal View History

2023-03-07 15:23:54 +00:00
/** @type {import('next').NextConfig} */
2023-03-12 19:06:21 +00:00
const withLess = require("next-with-less");
const nextConfig = withLess({
2023-03-07 15:23:54 +00:00
experimental: {
appDir: true,
},
2023-03-09 17:01:40 +00:00
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
}); // 针对 SVG 的处理规则
2023-03-07 15:23:54 +00:00
2023-03-09 17:01:40 +00:00
return config;
},
2023-03-12 19:06:21 +00:00
});
2023-03-09 17:01:40 +00:00
module.exports = nextConfig;