Skip to content

Commit 109f278

Browse files
authored
Merge pull request #335 from YujithIsura/newNomination
config api added
2 parents 99125d6 + 0757abe commit 109f278

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

client/Staging.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ENV REACT_APP_API_BASE_URL=https://apim-gw.ecstag.opensource.lk/nominations/0.9
1111
ENV REACT_APP_PDF_GENARATION_SERVICE_URL=https://apim-gw.ecstag.opensource.lk/nominations/0.9
1212
ENV REACT_APP_AUTH_BASE_URL=https://nominations.ecstag.opensource.lk
1313
ENV REACT_APP_NOMINATION_URL=https://nominations.ecstag.opensource.lk
14+
ENV REACT_APP_CONFIG_API_URL=http://220.247.204.21:3001
1415

1516
RUN npm run build
1617
RUN rm /etc/localtime

client/src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var CONFIG_API_URL = 'http://220.247.204.21:3001';
66
var AUTH_BASE_URL = 'http://localhost:3001/';
77
// var CONFIG_MANAGEMENT_SERVICE_URL = 'http://localhost:3001/';
88

9+
910
if (process.env.NODE_ENV === 'production'){
1011
API_BASE_URL = process.env.REACT_APP_API_BASE_URL;
1112
PDF_GENARATION_SERVICE_URL = process.env.REACT_APP_PDF_GENARATION_SERVICE_URL;

0 commit comments

Comments
 (0)