From c4eb838e60376aa6ca16150cd3aee263c5e2609b Mon Sep 17 00:00:00 2001 From: EresDev Date: Fri, 10 Jan 2025 01:26:57 -0500 Subject: [PATCH] fix: use empty string as backend url supports both preview & production url. --- .env.example | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/generate-permit.yml | 2 +- README.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index ab9596d8..2d760bb5 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ # common variables CHAIN_ID="" # mainnet: 1, goerli: 5 FRONTEND_URL="" -BACKEND_URL="/" # if you want to work on frontend only, use "https://pay.ubq.fi" +BACKEND_URL="" # "" or if you want to work on frontend only, use "https://pay.ubq.fi" UBIQUIBOT_PRIVATE_KEY="" RPC_PROVIDER_URL="" PAYMENT_TOKEN_ADDRESS="" # // DAI address, mainnet: 0x6b175474e89094c44da98b954eedeac495271d0f, goerli: 0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab8814d0..64635251 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: env: # Set environment variables for the build SUPABASE_URL: "https://wfzpewmlyiozupulbuur.supabase.co" SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndmenBld21seWlvenVwdWxidXVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU2NzQzMzksImV4cCI6MjAxMTI1MDMzOX0.SKIL3Q0NOBaMehH0ekFspwgcu3afp3Dl9EDzPqs1nKs" - BACKEND_URL: "/" + BACKEND_URL: "" - name: Upload build artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4d081af5..9ee45ad2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,7 @@ jobs: AMOUNT_IN_ETH: 30 CHAIN_ID: 100 FRONTEND_URL: "${{ env.DEPLOYMENT_URL }}" - BACKEND_URL: "/" + BACKEND_URL: "" RPC_PROVIDER_URL: "https://rpc.ankr.com/gnosis" UBIQUIBOT_PRIVATE_KEY: ${{ secrets.UBIQUIBOT_APP_PRIVATE_KEY_TEST }} diff --git a/.github/workflows/generate-permit.yml b/.github/workflows/generate-permit.yml index 900407ad..91d4695b 100644 --- a/.github/workflows/generate-permit.yml +++ b/.github/workflows/generate-permit.yml @@ -36,6 +36,6 @@ jobs: AMOUNT_IN_ETH: ${{ github.event.inputs.amount }} CHAIN_ID: 100 FRONTEND_URL: "http://localhost:8080" - BACKEND_URL: "/" + BACKEND_URL: "" RPC_PROVIDER_URL: "https://rpc.ankr.com/gnosis" UBIQUIBOT_PRIVATE_KEY: ${{ github.event.inputs.evmPrivateEncrypted }} diff --git a/README.md b/README.md index 4b9e9f00..be5e929d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ A vanilla Typescript dApp for claiming Ubiquity Rewards. It also includes tools # Common variables CHAIN_ID="31337" FRONTEND_URL="http://localhost:8080" - BACKEND_URL="/" # if you want to work on frontend only, use "https://pay.ubq.fi" + BACKEND_URL="" # "" or if you want to work on frontend only, use "https://pay.ubq.fi" UBIQUIBOT_PRIVATE_KEY="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" RPC_PROVIDER_URL="http://127.0.0.1:8545" PAYMENT_TOKEN_ADDRESS="0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d"