diff --git a/apps/dcellar-web-ui/.env.example b/apps/dcellar-web-ui/.env.example index 0ab4ee5c..656fa3eb 100644 --- a/apps/dcellar-web-ui/.env.example +++ b/apps/dcellar-web-ui/.env.example @@ -34,3 +34,6 @@ NEXT_PUBLIC_AUTH_TOKEN=The authentication token to use for all communication wit # NEXT_PUBLIC_GREENFIELD_CHAIN_EXPLORER_URL=https://greenfieldscan.com # NEXT_PUBLIC_BSC_EXPLORER_URL=https://testnet.bscscan.com + +# WalletConnect project ID used by the frontend build +NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= diff --git a/apps/dcellar-web-ui/src/context/WalletConnectContext/components/WalletConnectProvider.tsx b/apps/dcellar-web-ui/src/context/WalletConnectContext/components/WalletConnectProvider.tsx index 86c51a2a..8c43737f 100644 --- a/apps/dcellar-web-ui/src/context/WalletConnectContext/components/WalletConnectProvider.tsx +++ b/apps/dcellar-web-ui/src/context/WalletConnectContext/components/WalletConnectProvider.tsx @@ -7,7 +7,6 @@ import { GREENFIELD_CHAIN_ID } from '@/base/env'; import { metaMask, trustWallet, walletConnect } from '@totejs/walletkit/wallets'; import * as Sentry from '@sentry/nextjs'; import { reportEvent } from '@/utils/gtag'; -import * as process from 'process'; import { ReactNode } from 'react'; import { customTheme } from '@/base/theme/wallet'; import { DCLink } from '@/components/common/DCLink'; @@ -18,7 +17,7 @@ const config = createConfig( appName: 'Connect a Wallet', autoConnect: true, /* WC 2.0 requires a project ID (get one here: https://cloud.walletconnect.com/sign-in) */ - walletConnectProjectId: '89848e3205cafe0bf76c91aa1aaa71d0', + walletConnectProjectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID!, connectors: [trustWallet(), metaMask(), walletConnect()], }), );