const configs = {
    dev: {
        apiBase: 'http://localhost:3001',
    },
    testing: {
        apiBase: 'https://api.testing.dyte.in',
    },
    testing2: {
        apiBase: 'https://api.testingv2.dyte.in',
    },
    testing3: {
        apiBase: 'https://api.testingv3.dyte.in',
    },
    testing4: {
        apiBase: 'https://api.testingv4.dyte.in',
    },
    production: {
        apiBase: 'https://api.cluster.dyte.in',
    },
    staging: {
        apiBase: 'https://api.staging.dyte.in',
    },
};
const config = configs.production;
export const CLIENT_APP_VERSION = '0.5.0';
export const setUrl = (url) => {
    config.apiBase = url;
};
export const setUrlFromAppHost = (host) => {
    if (host.indexOf('testing.dyte.in') > 0) {
        setUrl(configs.testing.apiBase);
    }
    else if (host.indexOf('testingv2.dyte.in') > 0) {
        setUrl(configs.testing2.apiBase);
    }
    else if (host.indexOf('testingv3.dyte.in') > 0) {
        setUrl(configs.testing3.apiBase);
    }
    if (host.indexOf('staging.dyte.in') > 0) {
        setUrl(configs.staging.apiBase);
    }
    else {
        setUrl(configs.production.apiBase);
    }
};
// Default to staging, to enable frontend development without setting
// local backend, set REACT_APP_STAGE = dev if neeeded
export default config;
//# sourceMappingURL=config.js.map