Skip to content

Commit

Permalink
fix(Vercel): change rpc env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
phonktown committed Aug 2, 2024
1 parent 8ff535d commit a51a03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Please, click on "Deploy" and follow the Vercel instructions.
To deploy the app, you will need to set the following two required environment variables:

1. `ETHERSCAN_API_KEY`: Your Etherscan API key.
2. `VERCEL_MAINNET_RPC_URLS`: A comma-separated list of preferred Mainnet RPC URLs (e.g., URL1,URL2,URL3,...); The first entry is primary, else are fallbacks.
2. `MAINNET_RPC_URLS`: A comma-separated list of preferred Mainnet RPC URLs (e.g., URL1,URL2,URL3,...); The first entry is primary, else are fallbacks.

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/lidofinance/dao-voting-ui&env=ETHERSCAN_API_KEY,VERCEL_MAINNET_RPC_URLS&project-name=lido-voting-ui&repository-name=lido-voting-ui)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/lidofinance/dao-voting-ui&env=ETHERSCAN_API_KEY,MAINNET_RPC_URLS&project-name=lido-voting-ui&repository-name=lido-voting-ui)

Note: If the GitHub account attached to Vercel is a part of any GitHub organization, the Vercel "Pro" subscription plan might be required.

Expand Down
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const basePath = process.env.BASE_PATH || ''


// The VERCEL_MAINNET_RPC_URLS gets from the Vercel deploy
// The MAINNET_RPC_URLS gets from the Vercel deploy
const rpcUrls_1 =
(process.env.EL_RPC_URLS_1 && process.env.EL_RPC_URLS_1.split(',')) ||
(process.env.VERCEL_MAINNET_RPC_URLS && process.env.VERCEL_MAINNET_RPC_URLS.split(','))
(process.env.MAINNET_RPC_URLS && process.env.MAINNET_RPC_URLS.split(','))
const rpcUrls_5 =
process.env.EL_RPC_URLS_5 && process.env.EL_RPC_URLS_5.split(',')
const rpcUrls_17000 =
Expand Down

0 comments on commit a51a03a

Please sign in to comment.