ci: add B9 branch deployment to S3 and CloudFront
Deploy B9 / deploy (push) Successful in 3m2s

This commit is contained in:
fucheng
2026-11-02 11:17:14 +08:00
parent cb2d415165
commit 650e8ef017
5 changed files with 184 additions and 13 deletions
+2 -1
View File
@@ -46,9 +46,10 @@ function legacySkipModernCssPlugin(): Plugin {
/* ── Deploy base path ── */
const DEPLOY_ENV = process.env.DEPLOY_ENV || "production";
const DEPLOY_PROJECT = process.env.DEPLOY_PROJECT_NAME || "b9";
const isProd = process.env.NODE_ENV === "production";
const deployBase = isProd
? (DEPLOY_ENV === "test" ? "/b9/test/legacy/" : "/b9/v2/legacy/")
? (DEPLOY_ENV === "test" ? `/${DEPLOY_PROJECT}/test/legacy/` : `/${DEPLOY_PROJECT}/v2/legacy/`)
: "/";
export default defineConfig({