import {env} from "babel-core";

class Config {

  static urls = {};

  static baseUrl() {
    if(Config.isDevelopment())
      return 'http://localhost:5000';
    else
      return Config.getEnv('BACKEND_URL');
  }

  static getEnv(name) {
    return env[name];
  }

  static getMode() {
    return Config.getEnv('NODE_ENV');
  }

  static isDevelopment() {
    return Config.getMode() === 'development';
  }

  static getUrl(url) {
    Config.urls['searchCompanies'] = '/data/companies/search';
    return Config.urls[url];
  }
}
export default Config;



class Config {

  static urls = {};

  static baseUrl() {
    if(Config.isDevelopment())
      return 'http://localhost:5000';
    else
      return Config.getEnv('BACKEND_URL');
  }

  static getEnv(name) {
    return process.env[name];
  }

  static getMode() {
    return Config.getEnv('NODE_ENV');
  }

  static isDevelopment() {
    return Config.getMode() === 'development';
  }

  static getUrl(url) {
    Config.urls['searchCompanies'] = '/data/companies/search';
    return Config.urls[url];
  }
}
export default Config;

Revert change to import which was wrong.
Revert change to import which was wrong.
