perf(build): 跳过构建时类型检查并添加 typecheck 命令

This commit is contained in:
asgerzhou
2026-07-28 21:40:47 +08:00
parent 65f3d7ebec
commit d1c1a371ca
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -3,6 +3,10 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
reactCompiler: true,
typescript: {
// 跳过 next build 期间的 tsc 类型检查(CPU 密集),类型安全由本地/CI 跑 `pnpm typecheck` 兜底
ignoreBuildErrors: true,
},
};
export default nextConfig;