mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
@@ -88,8 +88,8 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
transpilePackages: ['@fastgpt/*', 'ahooks'],
|
transpilePackages: ['@fastgpt/*', 'ahooks'],
|
||||||
experimental: {
|
experimental: {
|
||||||
// 指定导出包优化,按需引入包模块
|
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
|
||||||
optimizePackageImports: ['mongoose', 'pg'],
|
serverComponentsExternalPackages: ['mongoose', 'pg'],
|
||||||
outputFileTracingRoot: path.join(__dirname, '../../')
|
outputFileTracingRoot: path.join(__dirname, '../../')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user