Skip to content

Commit

Permalink
Delete unused env vars (#1123)
Browse files Browse the repository at this point in the history
Polish
  • Loading branch information
Schwartz10 authored Sep 1, 2022
1 parent 5465375 commit 2c25ee1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 27 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/calibration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ jobs:
- name: Build
run: npm run export
env:
LOTUS_NODE_JSONRPC: 'https://api.calibration.node.glif.io/'
GRAPH_API_URL: 'graph-calibration.glif.link/query'
EXPLORER_URL: 'https://explorer-calibration.glif.link'
NODE_STATUS_API_KEY: 'm787669344-2a9b90eb03dbff3e503c93c7'
STATUS_API_ADDRESS: 'https://api.uptimerobot.com/v2/getMonitors'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ jobs:
- name: Build
run: npm run export
env:
LOTUS_NODE_JSONRPC: 'https://mainnet.glif.host'
GRAPH_API_URL: 'graph.glif.link/query'
EXPLORER_URL: 'https://explorer.glif.io'
NODE_STATUS_API_KEY: 'm786191525-b3192b91db66217a44f7d4be'
STATUS_API_ADDRESS: 'https://api.uptimerobot.com/v2/getMonitors'
Expand Down
7 changes: 5 additions & 2 deletions components/Wallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {
reportLedgerConfigError,
appendQueryParams,
navigate,
useLogger
useLogger,
useEnvironment,
Network
} from '@glif/react-components'

import { PAGE } from '../../constants'
Expand All @@ -33,6 +35,7 @@ export default function WalletHome() {
const [uncaughtError, setUncaughtError] = useState('')
const [ledgerBusy, setLedgerBusy] = useState(false)
const logger = useLogger()
const { networkName } = useEnvironment()

const onShowOnLedger = async () => {
setLedgerBusy(true)
Expand Down Expand Up @@ -101,7 +104,7 @@ export default function WalletHome() {
cidHref={(cid: string) =>
appendQueryParams(PAGE.WALLET_HOME, { cid })
}
warnMissingData
warnMissingData={networkName === Network.MAINNET}
/>
)}
</OneColumn>
Expand Down
2 changes: 0 additions & 2 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ process.env.NEXT_PUBLIC_WALLET_URL = 'https://wallet-calibration.glif.link'
process.env.NEXT_PUBLIC_SAFE_URL = 'https://safe-calibration.glif.link'
process.env.NEXT_PUBLIC_EXPLORER_URL = 'https://explorer-calibration.glif.link'
process.env.NEXT_PUBLIC_VERIFIER_URL = 'https://verify-calibration.glif.link'
process.env.NEXT_PUBLIC_LOTUS_NODE_JSONRPC =
'https://api.calibration.node.glif.io//rpc/v0'
process.env.NEXT_PUBLIC_COIN_TYPE = 't'
11 changes: 0 additions & 11 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ module.exports = (phase) => {

...(phase === PHASE_PRODUCTION_SERVER || phase === PHASE_PRODUCTION_BUILD
? {
NEXT_PUBLIC_GRAPH_API_URL:
process.env.GRAPH_API_URL || 'graph.glif.link/query',
// this api is configured to be load balanced across multiple nodes,
// if a single node gets sick, it will get dropped and not accept requests
NEXT_PUBLIC_LOTUS_NODE_JSONRPC:
process.env.LOTUS_NODE_JSONRPC || 'https://mainnet.glif.host',
// its fine for this to be public
NEXT_PUBLIC_NODE_STATUS_API_KEY:
process.env.NODE_STATUS_API_KEY ||
Expand All @@ -64,11 +58,6 @@ module.exports = (phase) => {
NEXT_PUBLIC_IS_PROD: true
}
: {
NEXT_PUBLIC_GRAPH_API_URL:
process.env.GRAPH_API_URL || 'graph-calibration.glif.link/query',
NEXT_PUBLIC_LOTUS_NODE_JSONRPC:
process.env.LOTUS_NODE_JSONRPC ||
'https://api.calibration.node.glif.io/',
// its fine for this to be public
NEXT_PUBLIC_NODE_STATUS_API_KEY:
process.env.NODE_STATUS_API_KEY ||
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@glif/filecoin-message": "^2.0.0-beta.16",
"@glif/filecoin-number": "^2.0.0-beta.16",
"@glif/filecoin-wallet-provider": "^2.0.0-beta.18",
"@glif/react-components": "^2.0.0-alpha.150",
"@glif/react-components": "^2.0.0-alpha.152",
"next": "^12.2.3",
"prop-types": "^15.8.1",
"react": "^17.0.2",
Expand Down

0 comments on commit 2c25ee1

Please sign in to comment.