Skip to content

Commit

Permalink
expose new env var
Browse files Browse the repository at this point in the history
  • Loading branch information
esterlus committed Jul 18, 2024
1 parent 04e1ffd commit fe6c5d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ REACT_APP_BACKEND_URL=backend.mytokentracker.xyz //'127.0.0.1:8787' if local se
REACT_APP_uHTTP_DP_ENDPOINT= //leave empty to use default
REACT_APP_uHTTP_TOKEN=
REACT_APP_uHTTP_FORCE_ZERO_HOP=true
REACT_APP_uHTTP_CLIENT_ASSOCIATED=false
1 change: 1 addition & 0 deletions frontend/src/Portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const notRealTokenRegEx = /visit|www|http|.com|.org|claim/gi;

let uHTTPOptions = {
forceZeroHop: process.env.REACT_APP_uHTTP_FORCE_ZERO_HOP ? JSON.parse(process.env.REACT_APP_uHTTP_FORCE_ZERO_HOP) : false,
clientAssociatedExitNodes: process.env.REACT_APP_uHTTP_CLIENT_ASSOCIATED ? JSON.parse(process.env.REACT_APP_uHTTP_CLIENT_ASSOCIATED) : false,
}

if(process.env.REACT_APP_uHTTP_DP_ENDPOINT) uHTTPOptions.discoveryPlatformEndpoint = process.env.REACT_APP_uHTTP_DP_ENDPOINT;
Expand Down

0 comments on commit fe6c5d2

Please sign in to comment.