mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
23 lines
497 B
JavaScript
23 lines
497 B
JavaScript
module.exports = { getServer };
|
|
|
|
const configs = {
|
|
local: {
|
|
host: 'localhost',
|
|
port: 4723
|
|
},
|
|
saucelabs: {
|
|
host: 'ondemand.saucelabs.com',
|
|
port: 80,
|
|
auth: process.env.SAUCE_USERNAME + ":" + process.env.SAUCE_ACCESS_KEY
|
|
},
|
|
browserstack: {
|
|
host: 'hub-cloud.browserstack.com',
|
|
port: 80,
|
|
auth: process.env.BROWSERSTACK_USERNAME + ":" + process.env.BROWSERSTACK_ACCESS_KEY
|
|
}
|
|
}
|
|
|
|
function getServer(environment) {
|
|
return configs[environment.toLowerCase()];
|
|
}
|