File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
var config = { } ;
2
2
config . env = process . env . NODE_ENV || "production" ;
3
3
4
- // load config based on env
5
- require ( 'custom-env' ) . env ( config . env )
4
+ if ( config . env === "production" ) {
5
+ config . uploadUrl = 'https://api-cloud.browserstack.com/automate-frameworks/cypress/upload' ;
6
+ config . rails_host = 'https://api.browserstack.com' ;
7
+ config . dashboardUrl = 'https://automate.browserstack.com/dashboard/v2/builds/' ;
8
+ config . usageReportingUrl = 'https://eds.browserstack.com:443/send_event_cy_internal' ;
9
+ } else {
10
+
11
+ // load config based on env
12
+ require ( 'custom-env' ) . env ( config . env ) ;
13
+
14
+ config . uploadUrl = process . env . UPLOAD_URL ;
15
+ config . rails_host = process . env . RAILS_HOST ;
16
+ config . dashboardUrl = process . env . DASHBOARD_URL ;
17
+ config . usageReportingUrl = process . env . USAGE_REPORTING_URL ;
18
+ }
6
19
7
- config . uploadUrl = process . env . UPLOAD_URL ;
8
- config . rails_host = process . env . RAILS_HOST ;
9
20
config . cypress_v1 = `${ config . rails_host } /automate/cypress/v1` ;
10
21
config . buildUrl = `${ config . cypress_v1 } /builds/` ;
11
22
config . buildStopUrl = `${ config . cypress_v1 } /builds/stop/` ;
12
- config . dashboardUrl = process . env . DASHBOARD_URL ;
13
- config . usageReportingUrl = process . env . USAGE_REPORTING_URL ;
14
23
config . fileName = "tests.zip" ;
15
24
16
25
module . exports = config ;
You can’t perform that action at this time.
0 commit comments