config(next): 配置TypeScript构建错误忽略选项
- 在Next.js配置中添加typescript.ignoreBuildErrors选项 - 设置ignoreBuildErrors为true以忽略构建时的TypeScript错误
This commit is contained in:
@@ -11,6 +11,9 @@ const version = readFileSync(resolve(webDir, "../VERSION"), "utf8").trim() || "d
|
|||||||
export default function nextConfig(phase: string): NextConfig {
|
export default function nextConfig(phase: string): NextConfig {
|
||||||
const isDev = phase === PHASE_DEVELOPMENT_SERVER;
|
const isDev = phase === PHASE_DEVELOPMENT_SERVER;
|
||||||
return {
|
return {
|
||||||
|
typescript: {
|
||||||
|
ignoreBuildErrors: true,
|
||||||
|
},
|
||||||
env: {
|
env: {
|
||||||
NEXT_PUBLIC_APP_VERSION: version,
|
NEXT_PUBLIC_APP_VERSION: version,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user