import { data } from './env';
export function getEnv(key, defaultValue) {
    const { mode } = data;
    let envValue;
    if (mode === 'dev') {
        // @ts-ignore
        envValue = 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