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 = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
reactCompiler: true, reactCompiler: true,
typescript: {
// 跳过 next build 期间的 tsc 类型检查(CPU 密集),类型安全由本地/CI 跑 `pnpm typecheck` 兜底
ignoreBuildErrors: true,
},
}; };
export default nextConfig; export default nextConfig;
+1
View File
@@ -8,6 +8,7 @@
"start": "next start", "start": "next start",
"lint": "biome check", "lint": "biome check",
"format": "biome format --write", "format": "biome format --write",
"typecheck": "tsc --noEmit",
"db:generate": "drizzle-kit generate", "db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate", "db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push", "db:push": "drizzle-kit push",