Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
feat: use env vars for faucet url
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwelde committed Dec 23, 2019
1 parent 9c38105 commit c25307c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ REACT_APP_SERVICE_PORT=3000
REACT_APP_NODE_HOST=127.0.0.1
REACT_APP_NODE_WS_PORT=9944

REACT_APP_KILT_TOKEN_REQUEST_EMAIL=mashnet.faucet@kilt.io
REACT_APP_FAUCET_URL=https://faucet.kilt.io

PUBLIC_URL=.
PUBLIC_URL=.
2 changes: 1 addition & 1 deletion .env.devnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ REACT_APP_SERVICE_PORT=443
REACT_APP_NODE_HOST=full-nodes-lb.devnet.kilt.io
REACT_APP_NODE_WS_PORT=443

REACT_APP_KILT_TOKEN_REQUEST_EMAIL=mashnet.faucet@kilt.io
REACT_APP_FAUCET_URL=https://faucet-devnet.kilt.io

PUBLIC_URL=//demo.devnet.kilt.io
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ REACT_APP_SERVICE_PORT=443
REACT_APP_NODE_HOST=full-nodes.kilt.io
REACT_APP_NODE_WS_PORT=443

REACT_APP_KILT_TOKEN_REQUEST_EMAIL=mashnet.faucet@kilt.io
REACT_APP_FAUCET_URL=https://faucet.kilt.io

PUBLIC_URL=//demo.kilt.io
2 changes: 1 addition & 1 deletion src/components/IdentityView/IdentityView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type State = {
requestKiltTokens: boolean
}

const FAUCET_URL = 'https://faucet.kilt.io'
const FAUCET_URL = process.env.REACT_APP_FAUCET_URL

class IdentityView extends React.Component<Props, State> {
constructor(props: Props) {
Expand Down

0 comments on commit c25307c

Please sign in to comment.