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