tokimoki
Version:
toki mobility
22 lines (21 loc) • 620 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHost = exports.config = void 0;
const prod_1 = require("./prod");
const staging_1 = require("./staging");
// Define configuration
exports.config = {
version: "public_v1",
type: "prod",
};
// Map environments to corresponding hosts
const hosts = {
prod: prod_1.default,
staging: staging_1.default,
};
// Function to dynamically get the host based on current config
const getHost = () => {
return hosts[exports.config.type][exports.config.version];
};
exports.getHost = getHost;
exports.default = exports.getHost;