You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
function _getenv() {
|
|
const data = _interopRequireDefault(require("getenv"));
|
|
_getenv = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _internal() {
|
|
const data = require("./internal");
|
|
_internal = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
function getAPI() {
|
|
if (_internal().Env.isLocal()) {
|
|
return {
|
|
scheme: 'http',
|
|
host: 'localhost',
|
|
port: 3000
|
|
};
|
|
} else if (_internal().Env.isStaging()) {
|
|
return {
|
|
scheme: _getenv().default.string('XDL_SCHEME', 'https'),
|
|
host: 'staging.exp.host',
|
|
port: _getenv().default.int('XDL_PORT', 0) || null
|
|
};
|
|
} else {
|
|
return {
|
|
scheme: _getenv().default.string('XDL_SCHEME', 'https'),
|
|
host: _getenv().default.string('XDL_HOST', 'exp.host'),
|
|
port: _getenv().default.int('XDL_PORT', 0) || null
|
|
};
|
|
}
|
|
}
|
|
const config = {
|
|
api: getAPI(),
|
|
developerTool: 'expo-cli'
|
|
};
|
|
var _default = config;
|
|
exports.default = _default;
|
|
//# sourceMappingURL=Config.js.map
|