fix: next config (#4207)

* reset package

* i18n

* update config

* i18n

* remove log
This commit is contained in:
Archer
2025-03-18 13:48:49 +08:00
committed by GitHub
parent 37f4dd3f27
commit 1bda5b5e58
38 changed files with 56 additions and 85 deletions

View File

@@ -80,7 +80,12 @@ const nextConfig = {
transpilePackages: ['@fastgpt/global', '@fastgpt/web', 'ahooks'],
experimental: {
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
serverComponentsExternalPackages: ['mongoose', 'pg', '@zilliz/milvus2-sdk-node', 'tiktoken'],
serverComponentsExternalPackages: [
'mongoose',
'pg',
'@zilliz/milvus2-sdk-node',
"tiktoken",
],
outputFileTracingRoot: path.join(__dirname, '../../'),
instrumentationHook: true
}