diff --git a/apps/connect/vite.config.ts b/apps/connect/vite.config.ts index 6a93b0faf..2960f5721 100644 --- a/apps/connect/vite.config.ts +++ b/apps/connect/vite.config.ts @@ -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: [ {