mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-06-20 23:26:13 +08:00
在 next.config.mjs 中添加 ESLint 配置,允许在构建过程中忽略 ESLint 错误,以避免构建中断。
This commit is contained in:
@@ -27,6 +27,10 @@ const nextConfig = {
|
||||
}
|
||||
],
|
||||
},
|
||||
eslint: {
|
||||
// 即使有 ESLint 错误,构建也会继续,不会因为 ESLint 报错而中断
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user