File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 40
40
//Environment that should be set from outside //TODO should replace this using GRUNT
41
41
42
42
// default environment when environment is not set by some external deployment script
43
- var nxEnvironment = "alpha " ; //env can be replaced, by dev, alpha or pro by nxs script on deploy
43
+ var nxEnvironment = "NX_ENV " ; //env can be replaced, by dev, alpha or pro by nxs script on deploy
44
44
// WARNING !!! DO NOT USE NX_ENV ANYWHERE ELSE IN THE PROJECT. A script replace its value by the current environment value just before deployment !
45
45
var apiBase = "https://dev-api.nextprot.org" ; //default for UI developers on MACs
46
46
var np1Base = 'https://uat-web1' ; //default for UI developers on MACs
64
64
else if ( nxEnvironment . toLowerCase ( ) === "alpha" || nxEnvironment . toLowerCase ( ) === "build" ) {
65
65
apiBase = 'https://' + nxEnvironment . toLowerCase ( ) + '-api.nextprot.org' ;
66
66
np1Base = 'http://uat-web1' ;
67
- } else { // By default use the dev env, No need to change for local testing
67
+ } else if ( nxEnvironment . toLowerCase ( ) === "cn" ) {
68
+ apiBase = 'https://' + nxEnvironment . toLowerCase ( ) + '-api.nextprot.org' ;
69
+ }
70
+
71
+ else { // By default use the dev env, No need to change for local testing
68
72
apiBase = 'https://dev-api.nextprot.org' ; // Don't forget https!
69
73
np1Base = 'https://uat-web1' ;
70
74
}
Original file line number Diff line number Diff line change 11
11
# production_environnement = true;
12
12
# local_environnement = false;
13
13
14
+ # ###### FOR CN Environment
15
+ # production_environnement = false;
16
+ # local_environnement = false;
17
+
18
+
14
19
production_environnement = false ;
15
- local_environnement = true ;
20
+ local_environnement = false ;
16
21
17
22
# endpoint = if production_environnement then "https://d2t3grwcyftpfv.cloudfront.net/" else ""
18
23
You can’t perform that action at this time.
0 commit comments