text: // Copyright (c) YugaByte, Inc.
  export const ROOT_URL = process.env.REACT_APP_YUGAWARE_API_URL ||
    (process.env.NODE_ENV === 'development' ? 'http://localhost:9000/api/v1' : '/api/v1');
  
  export const MAP_SERVER_URL = process.env.NODE_ENV === 'development'
    ? `https://s3-us-west-2.amazonaws.com/${process.env.REACT_APP_YB_MAP_URL}/map`
    : '/static/map';
  
  export const IN_DEVELOPMENT_MODE = process.env.NODE_ENV === 'development';
  
  // TODO : probably fetch the provider metadata (name and code from backend)
  export const PROVIDER_TYPES = [
    { code: "aws", name: "Amazon", label: "Amazon Web Services" },
    { code: "docker", name: "Docker Localhost", label: "Docker" },
    { code: "gcp", name: "Google", label: "Google Cloud" },
    { code: "onprem", name: "On Premises", label: "On-Premises Datacenter"},
    { code: "kubernetes", name: "Kubernetes", label: "Kubernetes"},
    { code: "cloud-1", name: "Cloud-1", label: "Cloud-1"},
    { code: "other", name: "Other", label: "Custom Datacenter"}
  ];
  
  export const REGION_METADATA = [
    { code: "us-west", name: "US West", latitude: 37, longitude: -121},
    { code: "us-east", name: "US East", latitude: 36.8, longitude: -79},
    { code: "us-south", name: "US South", latitude: 28, longitude: -99},
    { code: "us-north", name: "US North", latitude: 48, longitude:-118},
    { code: "south-asia", name: "South Asia", latitude: 18.4, longitude: 78.4},
    { code: "south-east-asia", name: "SE Asia", latitude: 14, longitude: 101},
    { code: "new-zealand", name: "New Zealand", latitude: -43, longitude: 171},
    { code: "japan", name: "Japan", latitude: 36, longitude: 139},
    { code: "eu-west", name: "EU West", latitude: 48, longitude: 3},
    { code: "eu-east", name: "EU East", latitude: 46, longitude: 25},
    { code: "china", name: "China", latitude: 31.2, longitude: 121.5},
    { code: "brazil", name: "Brazil", latitude: -22, longitude: -43},
    { code: "australia", name: "Australia", latitude: -29, longitude: 148}
  ];
  
  export const REGION_DICT = {};
  REGION_METADATA.forEach((region, index) => {
    REGION_DICT[region.code] = {
      ...region,
      index, // Track position in array for ease of access
    };
  });
  
  export const KUBERNETES_PROVIDERS = [
    { code: "pks", name: "Pivotal Container Service", enabled: true, logo: "pks.png" },
    { code: "gke", name: "Google Container Engine", enabled: true, logo: "gke.png"},
    { code: "aks", name: "Azure Container Service", enabled: false, logo: "aks.png"},
    { code: "eks", name: "Elastic Container Service", enabled: false, logo: "eks.png"},
    { code: "custom", name: "Custom Kubernetes Service", enabled: false, logo: "custom-k8s.png"}
  ];
  