mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-20 19:24:29 +00:00
26 lines
457 B
JavaScript
26 lines
457 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
reactStrictMode: false,
|
|
compress: true,
|
|
|
|
webpack(config) {
|
|
config.experiments = {
|
|
asyncWebAssembly: true,
|
|
layers: true
|
|
};
|
|
config.module.rules = config.module.rules.concat([
|
|
{
|
|
test: /\.svg$/i,
|
|
issuer: /\.[jt]sx?$/,
|
|
use: ['@svgr/webpack']
|
|
}
|
|
]);
|
|
|
|
return config;
|
|
}
|
|
};
|
|
|
|
module.exports = nextConfig;
|