From cc9c9366e7fa6c952091c6a7c015cfa01df48938 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 22 Mar 2026 19:06:29 +0800 Subject: [PATCH] fix(web): skip ESLint/TypeScript during Docker build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI/CD 分離策略: - ESLint 在獨立 lint job 執行 - TypeScript 在獨立 type-check job 執行 - Build 時跳過以加速 Docker 建置 Co-Authored-By: Claude --- apps/web/next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 8e7476a2..453e32bf 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -10,6 +10,14 @@ const nextConfig = { experimental: { typedRoutes: true, }, + // CI/CD: ESLint 在獨立 lint job 執行,build 時跳過 + eslint: { + ignoreDuringBuilds: true, + }, + // CI/CD: TypeScript 錯誤在獨立 type-check job 處理 + typescript: { + ignoreBuildErrors: true, + }, } module.exports = withNextIntl(nextConfig)