Pulled env var into variable which stopped webpack compilation errors

This commit is contained in:
sam-keen 2022-03-25 12:56:58 +00:00
parent 8e9c2e4080
commit 39a7f9e526

View File

@ -6,12 +6,14 @@ export const metamask = initializeConnector<MetaMask>(
(actions) => new MetaMask(actions)
);
const infuraId = process.env['NX_INFURA_ID '];
export const walletconnect = initializeConnector<WalletConnect>(
(actions) =>
new WalletConnect(actions, {
rpc: {
1: `https://mainnet.infura.io/v3/${process.env['NX_INFURA_ID']}`,
3: `https://ropsten.infura.io/v3/${process.env['NX_INFURA_ID']}`,
1: `https://mainnet.infura.io/v3/${infuraId}`,
3: `https://ropsten.infura.io/v3/${infuraId}`,
},
}),
[1, 3]