Skip to content

Commit

Permalink
show internal networks in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair committed Sep 25, 2024
1 parent f641347 commit 4c7054c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/utils/backendNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { mainnet } from 'viem/chains';
import { BackendNetwork } from '../types/chains';

const INTERNAL_BUILD = process.env.INTERNAL_BUILD === 'true';
const IS_DEV = process.env.IS_DEV === 'true';

const proxyBackendNetworkRpcEndpoint = (endpoint: string) => {
return `${endpoint}${process.env.RPC_PROXY_API_KEY}`;
Expand Down Expand Up @@ -51,6 +52,6 @@ export function transformBackendNetworksToChains(
}
// include all networks for internal builds, otherwise filter out flagged as internal
return networks
.filter((network) => !network.internal || INTERNAL_BUILD)
.filter((network) => !network.internal || INTERNAL_BUILD || IS_DEV)
.map((network) => transformBackendNetworkToChain(network));
}

0 comments on commit 4c7054c

Please sign in to comment.