0606.1
Some checks failed
Next.js CI/CD 流水线 / build (push) Failing after 2m47s
Next.js CI/CD 流水线 / deploy (push) Has been skipped

This commit is contained in:
2025-06-06 01:09:28 +08:00
parent a205f957f3
commit 643ef11931
5 changed files with 334 additions and 60 deletions

View File

@@ -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;