21 lines
474 B
TypeScript
21 lines
474 B
TypeScript
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;
|