UNPKG

1.2 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7function _getenv() {
8 const data = _interopRequireDefault(require("getenv"));
9 _getenv = function () {
10 return data;
11 };
12 return data;
13}
14function _internal() {
15 const data = require("./internal");
16 _internal = function () {
17 return data;
18 };
19 return data;
20}
21function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22function getAPI() {
23 if (_internal().Env.isLocal()) {
24 return {
25 scheme: 'http',
26 host: 'localhost',
27 port: 3000
28 };
29 } else if (_internal().Env.isStaging()) {
30 return {
31 scheme: _getenv().default.string('XDL_SCHEME', 'https'),
32 host: 'staging.exp.host',
33 port: _getenv().default.int('XDL_PORT', 0) || null
34 };
35 } else {
36 return {
37 scheme: _getenv().default.string('XDL_SCHEME', 'https'),
38 host: _getenv().default.string('XDL_HOST', 'exp.host'),
39 port: _getenv().default.int('XDL_PORT', 0) || null
40 };
41 }
42}
43const config = {
44 api: getAPI(),
45 developerTool: 'expo-cli'
46};
47var _default = config;
48exports.default = _default;
49//# sourceMappingURL=Config.js.map
\No newline at end of file