Skip to content

Commit

Permalink
Add env overrides for RPC servers (solana-labs#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
dahifi authored Nov 17, 2021
1 parent 6de4fb0 commit 6ecb4df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Run in context of one realm: starts with default realm and disables realms page navigation
# REALM=MNGO
# REALM=MNGO
MAINNET_RPC=https://mango.rpcpool.com
DEVNET_RPC=https://mango.devnet.rpcpool.com
4 changes: 2 additions & 2 deletions stores/useWalletStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
]

Expand Down

0 comments on commit 6ecb4df

Please sign in to comment.