Files
project-4fc4fbec-cc72-4730-…/next.config.ts
2026-01-01 09:09:44 +00:00

32 lines
546 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,
// Vercel优化配置
experimental: {
// 启用服务器组件优化
serverComponentsExternalPackages: [],
},
// 输出配置
output: 'standalone',
// 图片优化
images: {
domains: [],
formats: ['image/webp', 'image/avif'],
},
// 压缩配置
compress: true,
// 环境变量配置
env: {
CUSTOM_KEY: process.env.CUSTOM_KEY,
},
};
export default nextConfig;