diff --git a/.dockerignore b/.dockerignore index 2386470..15e35a6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -22,6 +22,7 @@ ## next.js **/.next/ **/.env*.local +.env ## production **/build diff --git a/.env.local_zq2 b/.env.local_zq2 index 2624afc..4a246ea 100644 --- a/.env.local_zq2 +++ b/.env.local_zq2 @@ -1 +1,2 @@ -NEXT_PUBLIC_ENV_CHAIN_ID=32769 \ No newline at end of file +CHAIN_ID=32769 +ZQ2_STAKING_WALLET_CONNECT_API_KEY=ewewewejwje \ No newline at end of file diff --git a/.env.mocked b/.env.mocked index eb7752e..38b0526 100644 --- a/.env.mocked +++ b/.env.mocked @@ -1 +1,2 @@ -NEXT_PUBLIC_ENV_CHAIN_ID=9999999 \ No newline at end of file +CHAIN_ID=9999999 +ZQ2_STAKING_WALLET_CONNECT_API_KEY=ewewewejwje \ No newline at end of file diff --git a/.env.zq2_testnet b/.env.zq2_testnet new file mode 100644 index 0000000..08720e1 --- /dev/null +++ b/.env.zq2_testnet @@ -0,0 +1,2 @@ +ZQ2_STAKING_CHAIN_ID=33103 +ZQ2_STAKING_WALLET_CONNECT_API_KEY=ewewewejwje \ No newline at end of file diff --git a/render_config_staging.yaml b/render_config_staging.yaml index 6570481..c3030f0 100644 --- a/render_config_staging.yaml +++ b/render_config_staging.yaml @@ -26,7 +26,7 @@ apps_to_clusters: replicas: 1 env_vars: - name: ZQ2_STAKING_CHAIN_ID - value: 33469 + value: 33103 pod_limits: cpu: 200m memory: 200Mi diff --git a/src/components/loginView.tsx b/src/components/loginView.tsx index 44a08c0..f4a045c 100644 --- a/src/components/loginView.tsx +++ b/src/components/loginView.tsx @@ -1,3 +1,4 @@ +import { AppConfigStorage } from "@/contexts/appConfigStorage"; import { WalletConnector } from "@/contexts/walletConnector"; import { MOCK_CHAIN } from "@/misc/chainConfig"; import { ConnectButton } from "@rainbow-me/rainbowkit"; @@ -5,12 +6,16 @@ import { Button } from "antd"; const LoginView: React.FC = () => { + const { + appConfig + } = AppConfigStorage.useContainer(); + const { connectDummyWallet, isDummyWalletConnecting, } = WalletConnector.useContainer(); - const connectWallet = process.env.NEXT_PUBLIC_ENV_CHAIN_ID === MOCK_CHAIN.id.toString() ? ( + const connectWallet = appConfig.chainId === MOCK_CHAIN.id ? (