This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +34
-2
lines changed
3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 61
61
APPNAME : " micro-frontends-taas-admin-app"
62
62
steps : *builddeploy_steps
63
63
64
+ " build-qa " :
65
+ << : *defaults
66
+ environment :
67
+ DEPLOY_ENV : " QA"
68
+ LOGICAL_ENV : " qa"
69
+ APPNAME : " micro-frontends-taas-admin-app"
70
+ steps : *builddeploy_steps
71
+
64
72
" build-prod " :
65
73
<< : *defaults
66
74
environment :
@@ -81,6 +89,13 @@ workflows:
81
89
only :
82
90
- dev
83
91
92
+ - " build-qa " :
93
+ context : org-global
94
+ filters :
95
+ branches :
96
+ only :
97
+ - qa
98
+
84
99
# Production builds are exectuted only on tagged commits to the
85
100
# master branch.
86
101
- " build-prod " :
Original file line number Diff line number Diff line change 1
1
/* global process */
2
2
3
3
module . exports = ( ( ) => {
4
- const appEnv = process . env . APPENV === "prod" ? "prod" : "dev" ;
5
- return require ( `./${ appEnv } ` ) ;
4
+ const appEnv = process . env . APPENV || "dev" ;
5
+
6
+ console . log ( `APPENV: "${ appEnv } "` ) ;
7
+
8
+ // for security reason don't let to require any arbitrary file defined in process.env
9
+ if ( [ "prod" , "dev" , "qa" ] . indexOf ( appEnv ) < 0 ) {
10
+ return require ( "./dev" ) ;
11
+ }
12
+
13
+ return require ( "./" + appEnv ) ;
6
14
} ) ( ) ;
15
+
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ API : {
3
+ V3 : "https://api.topcoder-qa.com/v3" ,
4
+ V5 : "https://api.topcoder-qa.com/v5" ,
5
+ } ,
6
+ PLATFORM_WEBSITE_URL : "https://platform.topcoder-qa.com" ,
7
+ TOPCODER_WEBSITE_URL : "https://www.topcoder-qa.com" ,
8
+ } ;
You can’t perform that action at this time.
0 commit comments