From fef7067cc08eddec12691fc8c830362c18ec40ea Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 11 May 2026 16:47:09 +0700 Subject: [PATCH] feat: add meetee and tiennm hosting sites under miti99 project Configure Firebase multi-site hosting so the redirect deploys to meetee.web.app and tiennm.web.app alongside miti99.web.app, all sharing the same public/ content under the miti99 project. --- .firebaserc | 14 +++++++++ .github/workflows/firebase-hosting-miti99.yml | 4 +++ .../workflows/firebase-hosting-tiennm99.yml | 1 + firebase.json | 30 ++++++++++++++----- 4 files changed, 41 insertions(+), 8 deletions(-) diff --git a/.firebaserc b/.firebaserc index ab1c677..befa2d8 100644 --- a/.firebaserc +++ b/.firebaserc @@ -2,5 +2,19 @@ "projects": { "miti99": "miti99", "tiennm99": "tiennm99" + }, + "targets": { + "miti99": { + "hosting": { + "miti99": ["miti99"], + "meetee": ["meetee"], + "tiennm": ["tiennm"] + } + }, + "tiennm99": { + "hosting": { + "tiennm99": ["tiennm99"] + } + } } } diff --git a/.github/workflows/firebase-hosting-miti99.yml b/.github/workflows/firebase-hosting-miti99.yml index 7d08474..6f004c8 100644 --- a/.github/workflows/firebase-hosting-miti99.yml +++ b/.github/workflows/firebase-hosting-miti99.yml @@ -6,6 +6,9 @@ on: jobs: build_and_deploy: runs-on: ubuntu-latest + strategy: + matrix: + target: [miti99, meetee, tiennm] steps: - uses: actions/checkout@v4 - uses: FirebaseExtended/action-hosting-deploy@v0 @@ -14,3 +17,4 @@ jobs: firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_MITI99 }} channelId: live projectId: miti99 + target: ${{ matrix.target }} diff --git a/.github/workflows/firebase-hosting-tiennm99.yml b/.github/workflows/firebase-hosting-tiennm99.yml index a7b27f6..dde1311 100644 --- a/.github/workflows/firebase-hosting-tiennm99.yml +++ b/.github/workflows/firebase-hosting-tiennm99.yml @@ -14,3 +14,4 @@ jobs: firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TIENNM99 }} channelId: live projectId: tiennm99 + target: tiennm99 diff --git a/firebase.json b/firebase.json index e782939..c9a0021 100644 --- a/firebase.json +++ b/firebase.json @@ -1,10 +1,24 @@ { - "hosting": { - "public": "public", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ] - } + "hosting": [ + { + "target": "miti99", + "public": "public", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + }, + { + "target": "meetee", + "public": "public", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + }, + { + "target": "tiennm", + "public": "public", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + }, + { + "target": "tiennm99", + "public": "public", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + } + ] }