From be5da16db41cb2d5e568b841532ecab2fba2d583 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 28 Nov 2023 15:53:47 -0300 Subject: [PATCH] setup default rpcs for mainnet --- apps/connect/vite.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: [ {