Skip to content

Commit

Permalink
fix: forgot files
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Dec 13, 2024
1 parent bdc0743 commit 900ac91
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NEXT_PUBLIC_WALLETCONNECT_KEY=test_walletconnect_key
NEXT_PUBLIC_WEB3AUTH_NETWORK=testnet
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=test_client_id
NEXT_PUBLIC_CHAIN=manifest
NEXT_PUBLIC_CHAIN_ID=test_chain_id
NEXT_PUBLIC_CHAIN_TIER=testnet
NEXT_PUBLIC_RPC_URL=https://test.rpc.url
NEXT_PUBLIC_API_URL=https://test.api.url
NEXT_PUBLIC_EXPLORER_URL=https://test.explorer.url
NEXT_PUBLIC_INDEXER_URL=https://test.indexer.url
14 changes: 14 additions & 0 deletions config/env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const env = {
chainId: process.env.NEXT_PUBLIC_CHAIN_ID ?? '',
rpcUrl: process.env.NEXT_PUBLIC_RPC_URL ?? '',
explorerUrl: process.env.NEXT_PUBLIC_EXPLORER_URL ?? '',
web3AuthClientId: process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID ?? '',
walletConnectKey: process.env.NEXT_PUBLIC_WALLETCONNECT_KEY ?? '',
web3AuthNetwork: process.env.NEXT_PUBLIC_WEB3AUTH_NETWORK ?? '',
chain: process.env.NEXT_PUBLIC_CHAIN ?? '',
chainTier: process.env.NEXT_PUBLIC_CHAIN_TIER ?? '',
apiUrl: process.env.NEXT_PUBLIC_API_URL ?? '',
indexerUrl: process.env.NEXT_PUBLIC_INDEXER_URL ?? '',
};

export default env;

0 comments on commit 900ac91

Please sign in to comment.