fa
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-26 21:29:54 +08:00
commit 2c4549ad79
85 changed files with 14664 additions and 0 deletions

32
next.config.ts Normal file
View File

@@ -0,0 +1,32 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// 输出优化standalone 模式可大幅减少 Docker 镜像大小
output: 'standalone',
// 编译优化
compiler: {
// 移除 console.log (生产环境)
removeConsole: process.env.NODE_ENV === 'production',
},
// 性能优化
reactStrictMode: true,
// 压缩优化
compress: true,
// 图片优化
images: {
formats: ['image/webp'],
minimumCacheTTL: 60,
},
// 实验性功能
experimental: {
// 优化包导入
optimizePackageImports: ['lucide-react', 'framer-motion', 'recharts', 'date-fns'],
},
};
export default nextConfig;