From a51a03a38796352ff4409369bdccd610a3fbbd2b Mon Sep 17 00:00:00 2001 From: phonktown Date: Fri, 2 Aug 2024 16:22:22 +0300 Subject: [PATCH] fix(Vercel): change rpc env var name --- README.md | 4 ++-- next.config.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f2df6b2..8c201ef0 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/next.config.mjs b/next.config.mjs index c455e461..31019b33 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -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 =