Skip to content

Commit

Permalink
style: rename PROJECT_ID to WALLETCONNECT_PROJECT_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Sep 10, 2024
1 parent 1d853a7 commit c39c3d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/config/env.ts
Original file line number Diff line number Diff line change
@@ -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,
};
Expand Down

0 comments on commit c39c3d4

Please sign in to comment.