Skip to content

Commit

Permalink
Merge pull request #1412 from digitalgreenorg/dashboard_integration
Browse files Browse the repository at this point in the history
changed env config
  • Loading branch information
shruthi-monika authored Sep 12, 2024
2 parents 40d093b + b3ae899 commit b6a2a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions public/env_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ Window.ENV_VARS = {
REACT_APP_BASEURL: "",
REACT_APP_BASEURL_without_slash: "",
REACT_APP_BASEURL_without_slash_view_data: "",
REACT_APP_BASEURL_FARMER_REGISTRY: "",
REACT_APP_BASEURL_DA_REGISTRY: "",
REACT_APP_BASEURL_DAAS_REGISTRY: ""
};
4 changes: 2 additions & 2 deletions src/features/default/src/Constants/UrlConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const UrlConstant = {

base_url:
Window?.ENV_VARS?.REACT_APP_BASEURL || process.env.REACT_APP_BASEURL,
base_url_farmer_registry: Window?.ENV_VARS?.REACT_APP_BASEURL_FARMER_REGISTRY ||process.env.REACT_APP_BASEURL_FARMER_REGISTRY,
base_url_da_registry : Window?.ENV_VARS?.REACT_APP_BASEURL_DA_REGISTRY ||process.env.REACT_APP_BASEURL_DA_REGISTRY,
base_url_farmer_registry: Window?.ENV_VARS?.REACT_APP_BASEURL_DAAS_REGISTRY ||process.env.REACT_APP_BASEURL_DAAS_REGISTRY,
base_url_da_registry : Window?.ENV_VARS?.REACT_APP_BASEURL_DAAS_REGISTRY ||process.env.REACT_APP_BASEURL_DAAS_REGISTRY,
base_url_without_slash:
Window?.ENV_VARS?.REACT_APP_BASEURL_without_slash ||
process.env.REACT_APP_BASEURL_without_slash,
Expand Down

0 comments on commit b6a2a38

Please sign in to comment.