diff --git a/.github/workflows/deploy-functions.yml b/.github/workflows/deploy-functions.yml index 062f594..b71e20c 100644 --- a/.github/workflows/deploy-functions.yml +++ b/.github/workflows/deploy-functions.yml @@ -34,6 +34,20 @@ jobs: - name: Install functions dependencies run: npm i working-directory: functions + + # Backup firestore before deploying to database + - name: 'Set up gcloud cli' + uses: google-github-actions/setup-gcloud@master + with: + service_account_key: "${{ secrets.GCP_SERVICE_ACCOUT_JSON_PRODUCTION }}" + export_default_credentials: true + + - name: Backup firestore + run: | + gcloud config set project ${{ secrets.FIREBASE_PROJECT_ID_PRODUCTION }} + echo "Project is now set to ${{ secrets.FIREBASE_PROJECT_ID_PRODUCTION }}" + gcloud firestore export ${{ secrets.GCP_BUCKET_LINK_PRODUCTION }}/firestore-backups/$(date +'%Y-%m-%d-%s')/ + - name: Deploy to Firebase uses: w9jds/firebase-action@master diff --git a/firebase.json b/firebase.json index c597064..befa371 100644 --- a/firebase.json +++ b/firebase.json @@ -11,7 +11,17 @@ "hosting": [ { "target": "website", - "public": "website/docs" + "public": "website/docs", + "rewrites": [ + { + "source": "/api", + "function": "mainnetMetadata" + }, + { + "source": "/testnetapi", + "function": "testnetMetadata" + } + ] }, { "target": "minter", diff --git a/website/src/css/essential-above-the-fold.sass b/website/src/css/essential-above-the-fold.sass index e95beee..1517922 100644 --- a/website/src/css/essential-above-the-fold.sass +++ b/website/src/css/essential-above-the-fold.sass @@ -96,7 +96,7 @@ main padding: 1rem text-align: center h2 - font-family: monospace, serif + font-family: "Courier New", monospace, serif line-height: 2rem #story