fix(config): use next.js appropriate projectId env var

This commit is contained in:
Ben Kremer 2022-09-01 09:55:17 +02:00
parent 54f050b2e3
commit 8db9560b72
3 changed files with 5 additions and 6 deletions

View File

@ -1,2 +1,2 @@
PROJECT_ID=39bc... NEXT_PUBLIC_PROJECT_ID=39bc...
RELAY_URL=wss://relay.walletconnect.com NEXT_PUBLIC_RELAY_URL=wss://relay.walletconnect.com

View File

@ -29,8 +29,8 @@ cp .env.local.example .env.local
Your `.env.local` now contains the following environment variables: Your `.env.local` now contains the following environment variables:
- `PROJECT_ID` (placeholder) - You can generate your own ProjectId at https://cloud.walletconnect.com - `NEXT_PUBLIC_PROJECT_ID` (placeholder) - You can generate your own ProjectId at https://cloud.walletconnect.com
- `RELAY_URL` (already set) - `NEXT_PUBLIC_RELAY_URL` (already set)
## Develop ## Develop
@ -49,4 +49,3 @@ yarn test
```bash ```bash
yarn build yarn build
``` ```

View File

@ -24,7 +24,7 @@ export const DEFAULT_TEST_CHAINS = [
export const DEFAULT_CHAINS = [...DEFAULT_MAIN_CHAINS, ...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_RELAY_URL = process.env.NEXT_PUBLIC_RELAY_URL;
export const DEFAULT_LOGGER = "debug"; export const DEFAULT_LOGGER = "debug";