From 900ac91677037c27caa1b6172b1b4ae2b71cc27f Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:36:24 -0500 Subject: [PATCH] fix: forgot files --- .env.test | 10 ++++++++++ config/env.ts | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .env.test create mode 100644 config/env.ts diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..a37d6dc --- /dev/null +++ b/.env.test @@ -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 \ No newline at end of file diff --git a/config/env.ts b/config/env.ts new file mode 100644 index 0000000..543750c --- /dev/null +++ b/config/env.ts @@ -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;