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
@@ -53,9 +53,10 @@ const plugins = [
/* ── 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/modern/" : "/b9/v2/modern/")
? (DEPLOY_ENV === "test" ? `/${DEPLOY_PROJECT}/test/modern/` : `/${DEPLOY_PROJECT}/v2/modern/`)
: "/";
export default defineConfig({