mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-01-31 00:00:03 +08:00
17 lines
289 B
JavaScript
17 lines
289 B
JavaScript
const local = {
|
|
host: 'localhost',
|
|
port: 4723
|
|
};
|
|
|
|
const sauce = {
|
|
host: 'ondemand.saucelabs.com',
|
|
port: 80,
|
|
auth: process.env.SAUCE_USERNAME + ":" + process.env.SAUCE_ACCESS_KEY
|
|
};
|
|
|
|
if (process.env.SAUCE_USERNAME) {
|
|
module.exports = sauce;
|
|
} else {
|
|
module.exports = local;
|
|
}
|