Skip to content

Commit

Permalink
Merge branch 'feat/add-explorer-option' of https://github.com/XLabs/p…
Browse files Browse the repository at this point in the history
…ortal-bridge-ui into feat/add-explorer-option
  • Loading branch information
yuli-ferna committed Dec 22, 2023
2 parents 05a36c8 + 4c37804 commit c3d619c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
name: preview
separator: P
connect-branch: development
connect-branch: feat/add-explorer-option
advanced-tools-branch: advanced-tools
environment: Cloudflare-Preview
public-url: "/${{ needs.branch-sha.outputs.value }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
name: testnet
separator: T
connect-branch: portal-bridge
connect-branch: feat/add-explorer-option
advanced-tools-branch: advanced-tools
environment: Cloudflare-Testnet
public-url: "/${{ needs.branch-sha.outputs.value }}"
Expand Down
10 changes: 7 additions & 3 deletions apps/connect/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ const MAINNET_RPCS = {
}
}

const VITE_APP_CLUSTER = process.env.VITE_APP_CLUSTER || 'testnet'

// https://vitejs.dev/config/
export default defineConfig({
base: process.env.PUBLIC_URL || '',
define: {
redirects: {},
wormholeConnectConfig: {
walletConnectProjectId: process.env.VITE_APP_WALLET_CONNECT_PROJECT_ID || '',
env: process.env.VITE_APP_CLUSTER || 'mainnet',
...(process.env.VITE_APP_CLUSTER === 'mainnet' ? MAINNET_RPCS : {}),
env: VITE_APP_CLUSTER,
...(VITE_APP_CLUSTER === 'mainnet' ? MAINNET_RPCS : {}),
showHamburgerMenu: false,
explorer: {
href: `https://wormholescan.io/#/txs?address={:address}&network=${VITE_APP_CLUSTER}`,
},
menu: [
{
label: 'Advanced Tools',
Expand Down

0 comments on commit c3d619c

Please sign in to comment.