code: func (c *Registry) GetEnvironment() string {
  	if c.v.IsSet(varEnvironment) {
  		return c.v.GetString(varEnvironment)
  	}
  
  	// TODO (@surajssd): remove this part of code once above environment
  	// variable is set in all configuration, following workaround ain't
  	// needed after that
  	authURL := c.GetAuthServiceURL()
  	if strings.Contains(authURL, "prod-preview.openshift.io") {
  		return "prod-preview"
  	} else if strings.HasSuffix(authURL, "openshift.io") {
  		return "production"
  	}
  	return "local"
  }
docs: // GetEnvironment returns the current environment application is deployed in
  // like 'prod', 'preview', 'local', etc as the value of environment variable
  // `F8_ENVIRONMENT` is set.