0606.1
This commit is contained in:
@@ -3,6 +3,18 @@ import type { NextConfig } from "next";
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
reactStrictMode: true,
|
||||
|
||||
// 启用 standalone 输出模式,用于 Docker 部署
|
||||
output: 'standalone',
|
||||
|
||||
// 优化生产构建
|
||||
compress: true,
|
||||
|
||||
// 启用实验性功能
|
||||
experimental: {
|
||||
// 优化包大小
|
||||
optimizePackageImports: ['antd', '@ant-design/icons'],
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user