From 2fc3b4238ad75fa0fbcf091d8d9df403106561d0 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 24 Dec 2025 22:01:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20skip=20backend=20rout?= =?UTF-8?q?es=20in=20bundle=20analyzer=20build=20(#10944)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add isBundleAnalyzer check in prebuild script to skip backend routes when ANALYZE=true && CI=true - Update bundle analyzer workflow to use fallback KEY_VAULTS_SECRET from generate-secret step - Increase NODE_OPTIONS memory limit to 8GB - Remove unnecessary S3_PUBLIC_DOMAIN and APP_URL env vars 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude --- scripts/prebuild.mts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/prebuild.mts b/scripts/prebuild.mts index af9c0efd2a..32edbb0f0c 100644 --- a/scripts/prebuild.mts +++ b/scripts/prebuild.mts @@ -6,6 +6,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; const isDesktop = process.env.NEXT_PUBLIC_IS_DESKTOP_APP === '1'; +const isBundleAnalyzer = process.env.ANALYZE === 'true' && process.env.CI === 'true'; if (isDesktop) { dotenvExpand.expand(dotenv.config({ path: '.env.desktop' })); @@ -16,6 +17,12 @@ if (isDesktop) { // 创建需要排除的特性映射 /* eslint-disable sort-keys-fix/sort-keys-fix */ const partialBuildPages = [ + // no need for bundle analyzer (frontend only) + { + name: 'backend-routes', + disabled: isBundleAnalyzer, + paths: ['src/app/(backend)'], + ], // no need for desktop // { // name: 'changelog',