Skip to content

Commit

Permalink
Merge pull request #335 from YujithIsura/newNomination
Browse files Browse the repository at this point in the history
config api added
  • Loading branch information
YujithIsura authored Jun 9, 2022
2 parents 99125d6 + 0757abe commit 109f278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/Staging.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV REACT_APP_API_BASE_URL=https://apim-gw.ecstag.opensource.lk/nominations/0.9
ENV REACT_APP_PDF_GENARATION_SERVICE_URL=https://apim-gw.ecstag.opensource.lk/nominations/0.9
ENV REACT_APP_AUTH_BASE_URL=https://nominations.ecstag.opensource.lk
ENV REACT_APP_NOMINATION_URL=https://nominations.ecstag.opensource.lk
ENV REACT_APP_CONFIG_API_URL=http://220.247.204.21:3001

RUN npm run build
RUN rm /etc/localtime
Expand Down
1 change: 1 addition & 0 deletions client/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var CONFIG_API_URL = 'http://220.247.204.21:3001';
var AUTH_BASE_URL = 'http://localhost:3001/';
// var CONFIG_MANAGEMENT_SERVICE_URL = 'http://localhost:3001/';


if (process.env.NODE_ENV === 'production'){
API_BASE_URL = process.env.REACT_APP_API_BASE_URL;
PDF_GENARATION_SERVICE_URL = process.env.REACT_APP_PDF_GENARATION_SERVICE_URL;
Expand Down

0 comments on commit 109f278

Please sign in to comment.