Skip to content

Commit e799733

Browse files
committed
feat(web): use alchemy env variable
1 parent 46e8ebb commit e799733

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

web/src/context/Web3Provider.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ import { arbitrumGoerli, gnosisChiado } from "wagmi/chains";
77
import { publicProvider } from "wagmi/providers/public";
88

99
const chains = [arbitrumGoerli, gnosisChiado];
10-
const projectId = "6efaa26765fa742153baf9281e218217";
10+
const projectId = process.env.WALLETCONNECT_PROJECT_ID ?? "6efaa26765fa742153baf9281e218217";
1111

12-
const { publicClient } = configureChains(chains, [alchemyProvider({ apiKey: "" }), publicProvider()]);
12+
const { publicClient } = configureChains(chains, [
13+
alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY ?? "" }),
14+
publicProvider(),
15+
]);
1316

1417
const wagmiConfig = createConfig({
1518
autoConnect: false,

0 commit comments

Comments
 (0)