diff --git a/dapps/react-dapp-v2/.env.local.example b/dapps/react-dapp-v2/.env.local.example index b9da8c0..3dc345e 100644 --- a/dapps/react-dapp-v2/.env.local.example +++ b/dapps/react-dapp-v2/.env.local.example @@ -1,2 +1,2 @@ -PROJECT_ID=39bc... -RELAY_URL=wss://relay.walletconnect.com +NEXT_PUBLIC_PROJECT_ID=39bc... +NEXT_PUBLIC_RELAY_URL=wss://relay.walletconnect.com diff --git a/dapps/react-dapp-v2/README.md b/dapps/react-dapp-v2/README.md index bb210f4..cb4b85e 100644 --- a/dapps/react-dapp-v2/README.md +++ b/dapps/react-dapp-v2/README.md @@ -29,8 +29,8 @@ cp .env.local.example .env.local Your `.env.local` now contains the following environment variables: -- `PROJECT_ID` (placeholder) - You can generate your own ProjectId at https://cloud.walletconnect.com -- `RELAY_URL` (already set) +- `NEXT_PUBLIC_PROJECT_ID` (placeholder) - You can generate your own ProjectId at https://cloud.walletconnect.com +- `NEXT_PUBLIC_RELAY_URL` (already set) ## Develop @@ -49,4 +49,3 @@ yarn test ```bash yarn build ``` - diff --git a/dapps/react-dapp-v2/src/constants/default.ts b/dapps/react-dapp-v2/src/constants/default.ts index dfc1cfb..f5e7ba0 100644 --- a/dapps/react-dapp-v2/src/constants/default.ts +++ b/dapps/react-dapp-v2/src/constants/default.ts @@ -24,7 +24,7 @@ export const DEFAULT_TEST_CHAINS = [ export const DEFAULT_CHAINS = [...DEFAULT_MAIN_CHAINS, ...DEFAULT_TEST_CHAINS]; -export const DEFAULT_PROJECT_ID = process.env.NEXT_PROJECT_ID; +export const DEFAULT_PROJECT_ID = process.env.NEXT_PUBLIC_PROJECT_ID; export const DEFAULT_RELAY_URL = process.env.NEXT_PUBLIC_RELAY_URL; export const DEFAULT_LOGGER = "debug";