Skip to content

Commit

Permalink
setup default rpcs for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Nov 28, 2023
1 parent f03388a commit be5da16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/connect/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { viteStaticCopy } from 'vite-plugin-static-copy'

const MAINNET_RPCS = {
rpcs: {
wormchain: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/wormchain/",
solana: "https://wormhole.rpcpool.com/",
osmosis: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/osmosis/",
ethereum: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/ethereum/",
sui: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/sui/",
aptos: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/aptos/",
kujira: "https://and76cjzpa.execute-api.us-east-2.amazonaws.com/kujira/"
}
}

// https://vitejs.dev/config/
export default defineConfig({
base: process.env.PUBLIC_URL || '',
define: {
wormholeConnectConfig: {
env: process.env.VITE_APP_CLUSTER || 'mainnet',
...(process.env.VITE_APP_CLUSTER === 'mainnet' ? MAINNET_RPCS : {}),
showHamburgerMenu: false,
menu: [
{
Expand Down

0 comments on commit be5da16

Please sign in to comment.