diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 73b26273f..92ccef8a7 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -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 }}" diff --git a/.github/workflows/testnet.yml b/.github/workflows/testnet.yml index ec3c689ca..f63a24e0a 100644 --- a/.github/workflows/testnet.yml +++ b/.github/workflows/testnet.yml @@ -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 }}" diff --git a/apps/connect/vite.config.ts b/apps/connect/vite.config.ts index e69729d9b..b820c4bdd 100644 --- a/apps/connect/vite.config.ts +++ b/apps/connect/vite.config.ts @@ -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',