Support setting subnet url via env var in dev mode (#4564)

This commit is contained in:
Shireesh Anjal
2023-05-07 23:34:22 -07:00
committed by GitHub
parent 5a0d5116f4
commit af0e241883
+4
View File
@@ -81,6 +81,10 @@ func subnetOfflinePublicKey() string {
func subnetBaseURL() string {
if globalDevMode {
subnetURLDev := os.Getenv("SUBNET_URL_DEV")
if len(subnetURLDev) > 0 {
return subnetURLDev
}
return "http://localhost:9000"
}