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;