diff --git a/.env.sample b/.env.sample index abf7b3a8f3..4091f1b5cf 100644 --- a/.env.sample +++ b/.env.sample @@ -1,2 +1,4 @@ # Run in context of one realm: starts with default realm and disables realms page navigation -# REALM=MNGO \ No newline at end of file +# REALM=MNGO +MAINNET_RPC=https://mango.rpcpool.com +DEVNET_RPC=https://mango.devnet.rpcpool.com \ No newline at end of file diff --git a/stores/useWalletStore.tsx b/stores/useWalletStore.tsx index bed292b1de..d73a03abc7 100644 --- a/stores/useWalletStore.tsx +++ b/stores/useWalletStore.tsx @@ -146,11 +146,11 @@ async function resolveProposalDescription(description: string) { export const ENDPOINTS: EndpointInfo[] = [ { name: 'mainnet', - url: 'https://mango.rpcpool.com', + url: process.env.MAINNET_RPC || 'https://mango.rpcpool.com', }, { name: 'devnet', - url: 'https://mango.devnet.rpcpool.com', + url: process.env.DEVNET_RPC || 'https://mango.devnet.rpcpool.com', }, ]