"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEnvironment = exports.isDevMode = exports.debug = void 0;
function debug(message) {
    if (!isDevMode()) {
        return;
    }
    console.log(message);
}
exports.debug = debug;
function isDevMode() {
    return process.env.DEBUGMODE === "true";
}
exports.isDevMode = isDevMode;
const getEnvironment = (manifest) => {
    var _a;
    return ((_a = manifest.canonicalHostname) === null || _a === void 0 ? void 0 : _a.startsWith("getjerry")) ? "prod" : "stage";
};
exports.getEnvironment = getEnvironment;
