SAAS/next.config.ts

23 lines
588 B
TypeScript
Raw Normal View History

2025-05-10 01:15:07 +08:00
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
2025-05-14 00:30:11 +08:00
reactStrictMode: true,
// 配置开发服务器选项,降低热重载频率
onDemandEntries: {
// 期间页面在内存中保持的时间(毫秒)
maxInactiveAge: 25 * 1000,
// 同时保持的页面数
pagesBufferLength: 2,
},
// 添加 standalone 输出模式,优化 Docker 部署
output: 'standalone',
// 禁用 ESLint 检查
eslint: {
// 在构建时不进行 ESLint 检查
ignoreDuringBuilds: true,
},
2025-05-10 01:15:07 +08:00
};
export default nextConfig;