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;