Skip to content

Commit

Permalink
fix: missing defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Jul 15, 2024
1 parent 455bce5 commit 9d82ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/app/src/lib/env.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const defaults = {
REACT_APP_CELO_EXPLORER: 'https://celoscan.io',
REACT_APP_SUPERFLUID_EXPLORER: 'https://console.superfluid.finance/celo',
REACT_APP_NETWORK: 'celo',
REACT_APP_SUBGRAPH:
'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/deployments/id/QmTLnjD81zfAH2AmFD9p1i61qLGX2qwHzBXUbwDG3hRP8T',
};
export default { ...defaults, ...process.env, ...import.meta.env };
2 changes: 1 addition & 1 deletion packages/app/src/models/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export enum SupportedNetwork {
}

export const SupportedNetworkNames: Record<SupportedNetwork, string> = {
[SupportedNetwork.CELO]: env.REACT_APP_NETWORK || 'celo',
[SupportedNetwork.CELO]: env.REACT_APP_NETWORK,
};

// Uniswap V3 Router on Celo
Expand Down

0 comments on commit 9d82ae8

Please sign in to comment.