Skip to content

Commit

Permalink
inject advance path, fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Oct 18, 2023
1 parent 0302304 commit f2499d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
- name: Set Version
id: set-version
run: |
pushd apps/portal
npm version $(node -p -e "require('./package.json').version")-P$(echo ${{ github.sha }} | cut -c -10)
- name: Build
env:
Expand Down Expand Up @@ -134,8 +135,9 @@ jobs:
- name: Build Portal Bridge
env:
PUBLIC_URL: "/${{ needs.branch-sha.outputs.value }}"
VITE_APP_VERSION: ${{ needs.branch-sha.outputs.value }}
VITE_APP_CLUSTER: "mainnet"
VITE_APP_VERSION: ${{ steps.set-version.outputs._PKG_VERSION }}
VITE_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
VITE_APP_ADVANCE_PATH: "/${{ needs.branch-sha.outputs.value }}/advance"
run: |
npm install -g husky
pushd wormhole-connect
Expand Down
6 changes: 3 additions & 3 deletions apps/connect/src/routes/token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ const config: WormholeConnectConfig = {
pageHeader: "Token Bridge",
pageSubHeader: "Portal is a bridge that offers unlimited transfers across chains for tokens and NFTs wrapped by Wormhole. Unlike many other bridges, you avoid double wrapping and never have to retrace your steps.",
moreTokens: {
href: 'https://portalbridge.com/#/transfer?sourceChain={:sourceChain}&targetChain={:targetChain}',
href: `${import.meta.env.VITE_APP_ADVANCE_PATH}/#/transfer?sourceChain={:sourceChain}&targetChain={:targetChain}`,
label: 'More tokens ...',
},
extraNetworks: {
href: 'https://portalbridge.com/#/transfer?sourceChain={:sourceChain}&targetChain={:targetChain}',
href: `${import.meta.env.VITE_APP_ADVANCE_PATH}/#/transfer?sourceChain={:sourceChain}&targetChain={:targetChain}`,
description: 'Portal is a bridge that offers unlimited transfers across chains for tokens and NFTs wrapped by Wormhole. Unlike many other bridges, you avoid double wrapping and never have to retrace your steps.',
networks: [
{
Expand All @@ -26,7 +26,7 @@ const config: WormholeConnectConfig = {
icon: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiBox-root css-uqopch' focusable='false' aria-hidden='true' viewBox='0 0 24 24' data-testid='OpenInNewIcon'%3E%3Cpath d='M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E",
name: 'more',
label: 'More ...',
href: 'https://portalbridge.com/#/transfer',
href: `${import.meta.env.VITE_APP_ADVANCE_PATH}/#/transfer`,
showOpenInNewIcon: false,
},
],
Expand Down

0 comments on commit f2499d4

Please sign in to comment.