bridge_ui: support custom Solana RPC
Change-Id: I30ca33a10e0a948615df36d4631b70f8a4d762d6
This commit is contained in:
parent
d14277f3ca
commit
75880ec74a
|
@ -45,7 +45,7 @@ REACT_APP_CLUSTER=testnet npm run build
|
|||
## Build for mainnet
|
||||
|
||||
```bash
|
||||
REACT_APP_CLUSTER=mainnet REACT_APP_COVALENT_API_KEY=YOUR_API_KEY npm run build
|
||||
REACT_APP_CLUSTER=mainnet REACT_APP_COVALENT_API_KEY=YOUR_API_KEY REACT_APP_SOLANA_API_URL=YOUR_CUSTOM_RPC npm run build
|
||||
```
|
||||
|
||||
## Test Server
|
||||
|
|
|
@ -80,12 +80,13 @@ export const WORMHOLE_RPC_HOSTS =
|
|||
: ["http://localhost:8080"];
|
||||
export const ETH_NETWORK_CHAIN_ID =
|
||||
CLUSTER === "mainnet" ? 1 : CLUSTER === "testnet" ? 5 : 1337;
|
||||
export const SOLANA_HOST =
|
||||
CLUSTER === "mainnet"
|
||||
? clusterApiUrl("mainnet-beta")
|
||||
: CLUSTER === "testnet"
|
||||
? clusterApiUrl("testnet")
|
||||
: "http://localhost:8899";
|
||||
export const SOLANA_HOST = process.env.REACT_APP_SOLANA_API_URL
|
||||
? process.env.REACT_APP_SOLANA_API_URL
|
||||
: CLUSTER === "mainnet"
|
||||
? clusterApiUrl("mainnet-beta")
|
||||
: CLUSTER === "testnet"
|
||||
? clusterApiUrl("testnet")
|
||||
: "http://localhost:8899";
|
||||
|
||||
export const TERRA_HOST =
|
||||
CLUSTER === "testnet"
|
||||
|
|
Loading…
Reference in New Issue