"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEnv = getEnv;
const env_1 = require("./env");
function getEnv(key, defaultValue) {
    const { mode } = env_1.data;
    let envValue;
    if (mode === 'dev') {
        // @ts-ignore
        envValue = env_1.data[key];
    }
    else {
        envValue = defaultValue;
    }
    // console.info(`phx react mode: ${key} => ${mode}`)
    // console.info(`phx react key: ${key} => ${envValue}`)
    // console.info('------------------------------------')
    return envValue;
}
//# sourceMappingURL=read-env-config.js.map