Skip to content

Commit bf3c630

Browse files
committed
feat: added an env var for the devtools URL
1 parent a534252 commit bf3c630

5 files changed

+8
-5
lines changed

web/.env.devnet-neo.public

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/klero
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
7+
export REACT_APP_DEVTOOLS_URL=https://dev--kleros-v2-neo-devtools.netlify.app
78
export REACT_APP_ARBITRATOR_TYPE=neo
89
export WALLETCONNECT_PROJECT_ID=
910
export ALCHEMY_API_KEY=

web/.env.devnet.public

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/klero
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
7+
export REACT_APP_DEVTOOLS_URL=https://dev--kleros-v2-testnet-devtools.netlify.app
78
export WALLETCONNECT_PROJECT_ID=
89
export ALCHEMY_API_KEY=
9-
export NODE_OPTIONS='--max-old-space-size=7680'
10+
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.mainnet-neo.public

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/klero
44
export REACT_APP_DRT_ARBMAINNET_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBMAINNET=190274403
7+
export REACT_APP_DEVTOOLS_URL=https://devtools.v2.kleros.builders
78
export REACT_APP_ARBITRATOR_TYPE=neo
89
export WALLETCONNECT_PROJECT_ID=
910
export ALCHEMY_API_KEY=
10-
export NODE_OPTIONS='--max-old-space-size=7680'
11+
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.testnet.public

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/klero
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3842783
7+
export REACT_APP_DEVTOOLS_URL=https://devtools.v2-testnet.kleros.builders
78
export WALLETCONNECT_PROJECT_ID=
89
export ALCHEMY_API_KEY=
9-
export NODE_OPTIONS='--max-old-space-size=7680'
10+
export NODE_OPTIONS='--max-old-space-size=7680'

web/src/consts/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export const isKlerosNeo = () => getArbitratorType() === ArbitratorTypes.neo;
3333
export const getArbitratorType = (): ArbitratorTypes =>
3434
_getArbitratorType(import.meta.env.REACT_APP_ARBITRATOR_TYPE?.toLowerCase());
3535

36-
export const getDevToolsUrl = () =>
37-
import.meta.env.URL?.replace(/^https:\/\//, "https://devtools.") || "https://devtools.v2-testnet.kleros.builders";
36+
export const getDevToolsUrl = () => import.meta.env.REACT_APP_DEVTOOLS_URL || "https://devtools.v2.kleros.builders";
3837

3938
export const GENESIS_BLOCK_ARBSEPOLIA = BigInt(import.meta.env.REACT_APP_GENESIS_BLOCK_ARBSEPOLIA ?? 0);
4039
export const GENESIS_BLOCK_ARBMAINNET = BigInt(import.meta.env.REACT_APP_GENESIS_BLOCK_ARBMAINNET ?? 0);

0 commit comments

Comments
 (0)