From 481601a983f55bae9484c3a8e0bb17019826657c Mon Sep 17 00:00:00 2001 From: Rupato Date: Mon, 22 Jul 2024 17:38:39 +0800 Subject: [PATCH 1/2] fix: added vercel for disaster recovery --- .github/workflows/build-and-deploy-staging.yml | 10 ++++++++++ .gitignore | 1 + vercel.dr.json | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 vercel.dr.json diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index 55616515..449e25cd 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -75,3 +75,13 @@ jobs: echo "Deployment to Cloudflare Pages failed." exit 1 fi + + - name: Upload to vercel + uses: 'deriv-com/shared-actions/.github/actions/vercel_DR_publish@master' + with: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }} + ENVIRONMENT: Preview + VERCEL_SCOPE: deriv + ALIAS_DOMAIN_URL: 'staging-bot-dr.binary.sx' diff --git a/.gitignore b/.gitignore index 40505094..80ed26ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *~ +.vercel .idea/ .grunt/ .sass-cache/ diff --git a/vercel.dr.json b/vercel.dr.json new file mode 100644 index 00000000..ac6da57f --- /dev/null +++ b/vercel.dr.json @@ -0,0 +1,5 @@ +{ + "cleanUrls": true, + "outputDirectory": "dist", + "buildCommand": "echo ✅ Skipping build to use existing built files" +} From cac69faaf801cf229ec9d66c04060dbf166de3f6 Mon Sep 17 00:00:00 2001 From: Rupato Date: Tue, 23 Jul 2024 14:44:14 +0800 Subject: [PATCH 2/2] fix: updated the DOMAIN_URL --- .github/workflows/build-and-deploy-staging.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index 449e25cd..d339b50d 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -84,4 +84,4 @@ jobs: VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }} ENVIRONMENT: Preview VERCEL_SCOPE: deriv - ALIAS_DOMAIN_URL: 'staging-bot-dr.binary.sx' + ALIAS_DOMAIN_URL: 'staging-dbot-dr.binary.sx'