From 1d2d4e30e705463164b1de33b2a6037b4596a3a9 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Fri, 8 Sep 2023 00:07:45 +0100 Subject: [PATCH] Add WC id to clouflare deployment (#340) --- .github/workflows/deploy-ui-cf-pages.yaml | 2 ++ packages/ui/src/contexts/WalletConnectContext.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-ui-cf-pages.yaml b/.github/workflows/deploy-ui-cf-pages.yaml index f34911d5..0fe1e030 100644 --- a/.github/workflows/deploy-ui-cf-pages.yaml +++ b/.github/workflows/deploy-ui-cf-pages.yaml @@ -26,6 +26,8 @@ jobs: - run: corepack enable - run: yarn install --immutable - run: yarn build + env: + VITE_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }} - name: Publish to Cloudflare Pages uses: cloudflare/pages-action@v1 with: diff --git a/packages/ui/src/contexts/WalletConnectContext.tsx b/packages/ui/src/contexts/WalletConnectContext.tsx index 8b4348fe..52b40eff 100644 --- a/packages/ui/src/contexts/WalletConnectContext.tsx +++ b/packages/ui/src/contexts/WalletConnectContext.tsx @@ -24,7 +24,7 @@ const WalletConnectContextProvider = ({ children }: WalletConnectContextProps) = const core = useMemo( () => new Core({ - logger: 'debug', + logger: 'info', projectId: import.meta.env.VITE_WALLETCONNECT_PROJECT_ID // relayUrl: relayerRegionURL ?? import.meta.env.VITE_WALLETCONNECT_PUBLIC_RELAY_URL }),