Commit 4eb2c9bd by RandyZhang Committed by GitHub

更新Nextjs配置,更新服务端组件的声明 (#1570)

Co-authored-by: randy <randy@aihelp.net>
parent b1aafde7
......@@ -88,8 +88,8 @@ const nextConfig = {
},
transpilePackages: ['@fastgpt/*', 'ahooks'],
experimental: {
// 指定导出包优化,按需引入包模块
optimizePackageImports: ['mongoose', 'pg'],
// 优化 Server Components 的构建和运行,避免不必要的客户端打包。
serverComponentsExternalPackages: ['mongoose', 'pg'],
outputFileTracingRoot: path.join(__dirname, '../../')
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment