Skip to content

Commit dc6c48e

Browse files
committed
fix: update FAUCET_API_URL to use environment variable and add faucet api URL in .env.example
1 parent 369a19a commit dc6c48e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ VITE_POCO_SUBGRAPH_URL="https://thegraph.iex.ec/subgraphs/name/bellecour/poco-v5
22
VITE_DATAPROTECTOR_SUBGRAPH_URL="https://thegraph.iex.ec/subgraphs/name/bellecour/dataprotector-v2"
33
VITE_REOWN_PROJECT_ID=
44
VITE_CLERK_PUBLISHABLE_KEY=
5+
VITE_FAUCET_API_URL = 'https://dev-rlc-faucet.iex.ec'
6+
7+
# prod
8+
9+
VITE_FAUCET_API_URL = 'https://rlc-faucet.iex.ec'

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const TABLE_REFETCH_INTERVAL = 10_000;
1212

1313
export const IPFS_GATEWAY_URL = 'https://ipfs.iex.ec';
1414
export const API_COINGECKO_URL = 'https://api.coingecko.com/api/v3/simple/';
15-
export const FAUCET_API_URL = 'https://dev-rlc-faucet.iex.ec';
15+
export const FAUCET_API_URL = import.meta.env.VITE_FAUCET_API_URL;
1616

1717
export const SUPPORTED_CHAINS = [
1818
{

0 commit comments

Comments
 (0)