From 4031984ed5127242926a2fbb9bab5d7850b05a4b Mon Sep 17 00:00:00 2001 From: TITI <162849030+0xtiti@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:41:46 -0300 Subject: [PATCH] style: rename PROJECT_ID to WALLETCONNECT_PROJECT_ID (#59) --- .env.example | 2 +- README.md | 2 +- src/config/env.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index c0afc18..79e89ff 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ NEXT_PUBLIC_API_BASE_URL= # Example: https://api.example.com -NEXT_PUBLIC_PROJECT_ID= # ProjectID from WalletConnect +NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID= # ProjectID from WalletConnect (Optional) NEXT_PUBLIC_TESTNET_MODE= # true or false \ No newline at end of file diff --git a/README.md b/README.md index 39612e2..365ee77 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ $ cp .env.example .env - Set up `NEXT_PUBLIC_API_BASE_URL` with ZKchainHub Backend API url. It will typically run on `http://localhost:3000` - (Optionally) - - Set `NEXT_PUBLIC_PROJECT_ID` with your [Wallet Connect](https://walletconnect.com/) ProjectID + - Set `NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID` with your [Wallet Connect](https://walletconnect.com/) ProjectID - Set `NEXT_PUBLIC_TESTNET_MODE ` with `true` to use testnet mode with testnet backend API URL set up in `NEXT_PUBLIC_API_BASE_URL` ## 🏃 Running the app diff --git a/src/config/env.ts b/src/config/env.ts index 5aee8c3..d41cd71 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -1,12 +1,12 @@ import { Env } from '~/types'; export const getEnv = (): Env => { - const NEXT_PUBLIC_PROJECT_ID = process.env.NEXT_PUBLIC_PROJECT_ID; + const NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID = process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID; const NEXT_PUBLIC_API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL; const NEXT_PUBLIC_TESTNET_MODE = process.env.NEXT_PUBLIC_TESTNET_MODE; return { - PROJECT_ID: NEXT_PUBLIC_PROJECT_ID as string, + PROJECT_ID: NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID as string, API_URL: NEXT_PUBLIC_API_BASE_URL as string, TESTNET_MODE: NEXT_PUBLIC_TESTNET_MODE as string, };