@kwiz/common
Version:
KWIZ common utilities and helpers for M365 platform
24 lines • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.kwiz_cdn_hostname_localdev = exports.kwiz_cdn_hostname_fastring = exports.kwiz_cdn_hostname_production = void 0;
exports.kwiz_cdn_root = kwiz_cdn_root;
const common_config_1 = require("../common-config");
/** apps.kwizcom.com */
exports.kwiz_cdn_hostname_production = "apps.kwizcom.com";
/** kwizappsfr.azurewebsites.net */
exports.kwiz_cdn_hostname_fastring = "kwizappsfr.azurewebsites.net";
/** localhost:4433 */
exports.kwiz_cdn_hostname_localdev = "apps.kwizcom.com";
/** https://apps.kwizcom.com (or local dev/fast-ring) - runtime use only, don't use in places where this might get saved in settings
* used to load resources directly from the environment with no need for a redirect tool
* redirect tool still needed for entry-point package such as SPFx
*/
function kwiz_cdn_root() {
//must wrap in function otherwise this will eval once before configInfo has been updated.
return `https://${common_config_1.CommonConfig.i.IsLocalDev
? exports.kwiz_cdn_hostname_localdev
: common_config_1.CommonConfig.i.IsFastRing
? exports.kwiz_cdn_hostname_fastring
: exports.kwiz_cdn_hostname_production}`;
}
//# sourceMappingURL=constants.js.map