Files
SaaS2/next.config.ts
RUI eb79e416db
Some checks failed
Next.js CI/CD 流水线 / deploy (push) Failing after 40s
0607.4
2025-06-07 01:41:58 +08:00

21 lines
474 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactStrictMode: true,
// 启用 standalone 输出模式,用于 Docker 部署Windows 本地开发时可能需要注释掉)
output: 'standalone',
// 优化生产构建
compress: true,
// 启用实验性功能
experimental: {
// 优化包大小
optimizePackageImports: ['antd', '@ant-design/icons'],
},
};
export default nextConfig;