mirror of
				https://github.com/linka-cloud/grpc.git
				synced 2025-11-04 03:21:50 +00:00 
			
		
		
		
	react: add DevEnv utility
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
		@@ -57,3 +57,7 @@ func newProxy(endpoint string) (http.Handler, error) {
 | 
			
		||||
	p := httputil.NewSingleHostReverseProxy(u)
 | 
			
		||||
	return p, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func DevEnv() bool {
 | 
			
		||||
	return os.Getenv(EndpointEnv) != ""
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user