Skip to content

Commit

Permalink
move project id to env #5285
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Feb 19, 2025
1 parent 07e0329 commit 03b10fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/kintsugi-next/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ NEXT_PUBLIC_PREVIEW_IMG_ENDPOINT=https://ipfs.fleek.co/ipfs
NEXT_PUBLIC_SITE_URL=https://test.subsquare.io

NEXT_PUBLIC_TEST_ENDPOINTS=subsquare1;wss://tp.subsquare.io|subsquare2;wss://tc.subsquare.io

# WalletConnect project id https://cloud.walletconnect.com/
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=16c4de5fd6fec3e0f3b6bdf2a67f2160
4 changes: 1 addition & 3 deletions packages/next-common/context/walletconnect/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import { CACHE_KEY } from "next-common/utils/constants";
import { useDispatch } from "react-redux";
import { newErrorToast } from "next-common/store/reducers/toastSlice";

// FIXME: use company project id
// `projectId` is configured on `https://cloud.walletconnect.com/`
const projectId = "16c4de5fd6fec3e0f3b6bdf2a67f2160";
const projectId = process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID;

const relayUrl = "wss://relay.walletconnect.com";

Expand Down
3 changes: 3 additions & 0 deletions packages/next/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ NEXT_PUBLIC_WS_ASSET_HUB_ENDPOINTS=wss://statemint-rpc.dwellir.com;wss://statemi
# Only for polkadot
NEXT_PUBLIC_WS_COLLECTIVES_ENDPOINTS=wss://sys.ibp.network/collectives-polkadot;wss://collectives-polkadot.dotters.network;wss://polkadot-collectives-rpc.polkadot.io
NEXT_PUBLIC_WS_HYDRATION_ENDPOINTS=wss://rpc.hydradx.cloud;wss://hydradx.paras.ibp.network;wss://hydration.dotters.network;wss://hydradx-rpc.dwellir.com

# WalletConnect project id https://cloud.walletconnect.com/
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=16c4de5fd6fec3e0f3b6bdf2a67f2160

0 comments on commit 03b10fe

Please sign in to comment.