Skip to content

Commit

Permalink
更新Nextjs配置,更新服务端组件的声明 (#1570)
Browse files Browse the repository at this point in the history
Co-authored-by: randy <[email protected]>
  • Loading branch information
RandyZ and randy authored May 23, 2024
1 parent b1aafde commit 4eb2c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const nextConfig = {
},
transpilePackages: ['@fastgpt/*', 'ahooks'],
experimental: {
// 指定导出包优化,按需引入包模块
optimizePackageImports: ['mongoose', 'pg'],
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
serverComponentsExternalPackages: ['mongoose', 'pg'],
outputFileTracingRoot: path.join(__dirname, '../../')
}
};
Expand Down

0 comments on commit 4eb2c9b

Please sign in to comment.