From 13827634e71b139036a68af3e4031b0b80f6dbe7 Mon Sep 17 00:00:00 2001 From: eafonyang Date: Tue, 29 Sep 2026 16:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 6 +++--- vite.config.ts | 2 +- vite.legacy.config.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b348043..883d234 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -32,13 +32,13 @@ show_help() { EOF } -# 自动识别项目名称 (x8 / x9),依据脚本所在的项目根目录名 +# 自动识别项目名称 (x8 / x9 / b9 / bd9 / bh9),依据脚本所在的项目根目录名 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(basename "$(dirname "$SCRIPT_DIR")")" -PROJECT_NAME="$(echo "$PROJECT_ROOT" | grep -oE '^(x8|x9|b9)')" +PROJECT_NAME="$(echo "$PROJECT_ROOT" | grep -oE '^(bd9|bh9|x8|x9|b9)')" if [ -z "$PROJECT_NAME" ]; then - echo "错误: 无法从路径 '$PROJECT_ROOT' 识别项目名称 (x8/x9/b9)" + echo "错误: 无法从路径 '$PROJECT_ROOT' 识别项目名称 (x8/x9/b9/bd9/bh9)" exit 1 fi diff --git a/vite.config.ts b/vite.config.ts index bfb1e0f..8fed90c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -53,7 +53,7 @@ const plugins = [ const DEPLOY_ENV = process.env.DEPLOY_ENV || "production"; const isProd = process.env.NODE_ENV === "production"; const deployBase = isProd - ? (DEPLOY_ENV === "test" ? "/b9/test/modern/" : "/b9/v2/modern/") + ? (DEPLOY_ENV === "test" ? "/bh9/test/modern/" : "/bh9/v2/modern/") : "/"; export default defineConfig({ diff --git a/vite.legacy.config.ts b/vite.legacy.config.ts index e1b3573..775d14f 100644 --- a/vite.legacy.config.ts +++ b/vite.legacy.config.ts @@ -47,7 +47,7 @@ function legacySkipModernCssPlugin(): Plugin { const DEPLOY_ENV = process.env.DEPLOY_ENV || "production"; const isProd = process.env.NODE_ENV === "production"; const deployBase = isProd - ? (DEPLOY_ENV === "test" ? "/b9/test/legacy/" : "/b9/v2/legacy/") + ? (DEPLOY_ENV === "test" ? "/bh9/test/legacy/" : "/bh9/v2/legacy/") : "/"; export default defineConfig({