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 11var config = { } ;
22config . env = process . env . NODE_ENV || "production" ;
33
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+ }
619
7- config . uploadUrl = process . env . UPLOAD_URL ;
8- config . rails_host = process . env . RAILS_HOST ;
920config . cypress_v1 = `${ config . rails_host } /automate/cypress/v1` ;
1021config . buildUrl = `${ config . cypress_v1 } /builds/` ;
1122config . buildStopUrl = `${ config . cypress_v1 } /builds/stop/` ;
12- config . dashboardUrl = process . env . DASHBOARD_URL ;
13- config . usageReportingUrl = process . env . USAGE_REPORTING_URL ;
1423config . fileName = "tests.zip" ;
1524
1625module . exports = config ;
You can’t perform that action at this time.
0 commit comments