Skip to content

Commit ab79651

Browse files
authored
Merge pull request #1612 from kleros/chore(web)/remove-hardcoded-api-key
chore(web): removed hardcoded api key & mentioned in .env
2 parents 02f80cc + 6a138a3 commit ab79651

7 files changed

+13
-1
lines changed

web/.env.devnet-neo.public

+2
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/6
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
77
export REACT_APP_ARBITRATOR_TYPE=neo
8+
export WALLETCONNECT_PROJECT_ID=
9+
export ALCHEMY_API_KEY=
810
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.devnet-university.public

+2
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/6
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
77
export REACT_APP_ARBITRATOR_TYPE=university
8+
export WALLETCONNECT_PROJECT_ID=
9+
export ALCHEMY_API_KEY=
810
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.devnet.public

+2
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ 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 WALLETCONNECT_PROJECT_ID=
8+
export ALCHEMY_API_KEY=
79
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.local.public

+2
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
export REACT_APP_DEPLOYMENT=devnet
33
export REACT_APP_CORE_SUBGRAPH=http://localhost:8000/subgraphs/name/kleros/kleros-v2-core-local
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.thegraph.com/subgraphs/name/alcercu/templateregistrydevnet
5+
export WALLETCONNECT_PROJECT_ID=
6+
export ALCHEMY_API_KEY=
57
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.mainnet-neo.public

+2
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ export REACT_APP_DRT_ARBMAINNET_SUBGRAPH=https://api.studio.thegraph.com/query/6
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
66
export REACT_APP_GENESIS_BLOCK_ARBMAINNET=190274403
77
export REACT_APP_ARBITRATOR_TYPE=neo
8+
export WALLETCONNECT_PROJECT_ID=
9+
export ALCHEMY_API_KEY=
810
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.testnet.public

+2
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ 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 WALLETCONNECT_PROJECT_ID=
8+
export ALCHEMY_API_KEY=
79
export NODE_OPTIONS='--max-old-space-size=7680'

web/src/context/Web3Provider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { isProductionDeployment } from "consts/index";
1111

1212
import { lightTheme } from "styles/themes";
1313

14-
const projectId = import.meta.env.WALLETCONNECT_PROJECT_ID ?? "6efaa26765fa742153baf9281e218217";
14+
const projectId = import.meta.env.WALLETCONNECT_PROJECT_ID ?? "";
1515
export const alchemyApiKey = import.meta.env.ALCHEMY_API_KEY ?? "";
1616

1717
const chains = ALL_CHAINS as [Chain, ...Chain[]];

0 commit comments

Comments
 (0)