Skip to content

Commit 98bf0d2

Browse files
committed
fix bugs
1 parent 9cfe969 commit 98bf0d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// TODO: remove once env variables are added to vercel.
22
export const LOOPRING_SUBGRAPH =
33
process.env.NEXT_PUBLIC_SUBGRAPH_ENDPOINT ??
4-
'https://gateway.thegraph.com/api/294a874dfcbae25bcca653a7f56cfb63/subgraphs/id/7QP7oCLbEAjejkp7wSLTD1zbRMSiDydAmALksBB5E6i1';
4+
'https://api.thegraph.com/subgraphs/name/loopring/loopring';
55
export const EXPLORER_URL = 'https://etherscan.io/';
66
export const INFURA_ENDPOINT =
7-
process.env.NEXT_PUBLIC_INFURA_ENDPOINT ?? 'https://mainnet.infura.io/v3/873030883ea1405898041be94ab2bfd5';
7+
process.env.NEXT_PUBLIC_INFURA_ENDPOINT
8+
? process.env.NEXT_PUBLIC_INFURA_ENDPOINT
9+
: window.location === '' ? 'https://mainnet.infura.io/v3/873030883ea1405898041be94ab2bfd5';
810
export const UNISWAP_SUBGRAPH = 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2';
911
export const LOOPRING_API = 'https://api3.loopring.io/api/v3/';
1012
export const apiEndpointByTxType = {

0 commit comments

Comments
 (0)