Skip to content

Commit

Permalink
add url param to web3modal (#659)
Browse files Browse the repository at this point in the history
* add url param to web3modal

* setup the rigth domain for each env
  • Loading branch information
sebastianscatularo authored Jan 9, 2024
1 parent f5b2a7d commit c12a4a4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
default: Cloudflare-Preview
public-url:
type: string
app-domain:
type: string
default: "portalbridge.com"
wac-url:
type: string
default: "https://wac.staging.gfx.town"
Expand Down Expand Up @@ -158,6 +161,7 @@ jobs:
PUBLIC_URL: ${{ inputs.public-url }}
VITE_WAC_URL: ${{ inputs.wac-url }}
VITE_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID }}
VITE_APP_DOMAIN: ${{ inputs.app-domain }}
run: |
pushd apps/rewards-dashboard
npm ci
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
public-url: "/${{ needs.branch-sha.outputs.value }}"
wac-url: "https://wac.gfx.xyz"
project-branch: ${{ github.event.pull_request.head.ref }}
app-domain: preview.portalbridge.com
secrets: inherit
needs:
- branch-sha
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ jobs:
project-branch: main
public-url: ''
wac-url: "https://wac.gfx.xyz"
app-domain: portalbridge.com
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
environment: Cloudflare-Testnet
public-url: "/${{ needs.branch-sha.outputs.value }}"
project-branch: ${{ github.event.pull_request.head.ref }}
app-domain: testnet.portalbridge.com
secrets: inherit
needs:
- branch-sha
Expand Down
3 changes: 1 addition & 2 deletions apps/rewards-dashboard/src/providers/Web3Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ const projectId = envProjectId
? envProjectId
: "dummy-wc-key";

// TODO:
const metadata = {
name: "Wormhole USDC rewards ",
description: "Wormhole USDC Rewards",
//url: `https://portalbridge.com${BASE_URL ? BASE_URL : ""}`,
url: import.meta.env.VITE_APP_DOMAIN || 'portalbridge.com',
icons: [`https://portalbridge.com/favicon.ico`],
};
const theseChains = [...CHAINS_LIST];
Expand Down

0 comments on commit c12a4a4

Please sign in to comment.