From 6a1ec9a81a4447adf1f02cfd6af9829c7adeb006 Mon Sep 17 00:00:00 2001 From: uno-sw Date: Sun, 18 May 2025 23:30:34 +0900 Subject: [PATCH 1/2] Don't use framework deployment --- firebase.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/firebase.json b/firebase.json index 9535fe4..6603732 100644 --- a/firebase.json +++ b/firebase.json @@ -1,13 +1,16 @@ { "hosting": { - "source": ".", + "public": "build/web", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], - "frameworksBackend": { - "region": "asia-east1" - } + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] } -} \ No newline at end of file +} From abc71f030e6805f441ff356b1f47be36881bb7c2 Mon Sep 17 00:00:00 2001 From: uno-sw Date: Sun, 18 May 2025 23:34:59 +0900 Subject: [PATCH 2/2] Enable Flutter cache in actions --- .github/workflows/firebase-hosting-merge.yml | 1 + .github/workflows/firebase-hosting-pull-request.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 8f3eea4..2b6b941 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -15,6 +15,7 @@ jobs: with: channel: stable flutter-version: 3.29.3 + cache: true - run: flutter pub get - run: flutter build web --wasm - uses: FirebaseExtended/action-hosting-deploy@v0 diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index f52463a..27cdc6e 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -17,6 +17,7 @@ jobs: with: channel: stable flutter-version: 3.29.3 + cache: true - run: flutter pub get - run: flutter build web --wasm - uses: FirebaseExtended/action-hosting-deploy@v0