From 928dab0a95811702abd41b41626487583f6f0207 Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Wed, 20 Mar 2024 11:41:08 +0800 Subject: [PATCH] chore: use VERCEL_URL in staging environment Signed-off-by: Miles Zhang --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index ec7dbb470d..559cf6e73e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,6 +1,6 @@ export default { API_URL: process.env.REACT_APP_API_URL || 'http://localhost:3000', CHAIN_TYPE: process.env.REACT_APP_CHAIN_TYPE || 'mainnet', - BASE_URL: process.env.REACT_APP_BASE_URL || 'explorer.nervos.org/', + BASE_URL: process.env.REACT_APP_BASE_URL ?? process.env.VERCEL_URL, BACKUP_NODES: process.env.REACT_APP_BACKUP_NODES?.split(',') || [], }