From affd0a664a700418b41a19d59137a8be7b1a27e0 Mon Sep 17 00:00:00 2001 From: Mehdi Torabi <46302001+mehdi-torabiv@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:51:44 +0300 Subject: [PATCH] update rainbowkit (#354) * update rainbowkit * rename --- src/configs/index.ts | 1 + src/rainbowKitConfig.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configs/index.ts b/src/configs/index.ts index 82888eca..20857784 100644 --- a/src/configs/index.ts +++ b/src/configs/index.ts @@ -12,4 +12,5 @@ export const conf = { PROJECT_ID: process.env.NEXT_PUBLIC_PROJECT_ID, APP_DEVELOPER_PUBLIC_ADDRESS: process.env.NEXT_PUBLIC_APP_DEVELOPER_PUBLIC_ADDRESS, + IS_MAINNET: process.env.NEXT_PUBLIC_IS_MAINNET, }; diff --git a/src/rainbowKitConfig.ts b/src/rainbowKitConfig.ts index bb82ab1e..1e88383c 100644 --- a/src/rainbowKitConfig.ts +++ b/src/rainbowKitConfig.ts @@ -4,7 +4,7 @@ import { http } from 'wagmi'; import { conf } from './configs'; -const isProduction = process.env.NODE_ENV === 'production'; +const isProduction = conf.IS_MAINNET === 'true'; export const SUPPORTED_CHAINS: Chain[] = isProduction ? [arbitrum]