We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec46bd7 + 2f746a3 commit 2148566Copy full SHA for 2148566
rapyuta_io_sdk_v2/config.py
@@ -130,8 +130,14 @@ def set_environment(self, name: str = None) -> None:
130
name = name or "ga" # Default to prod.
131
132
if name == "local":
133
+ # Allow overriding the local API host via environment variables.
134
+ # Priority: LOCAL_V2API_HOST > default fallback.
135
+ override_host = (
136
+ os.getenv("LOCAL_V2API_HOST")
137
+ or "http://gateway/io"
138
+ )
139
self.hosts["environment"] = name
- self.hosts["v2api_host"] = "http://v2-apiserver:8080"
140
+ self.hosts["v2api_host"] = override_host
141
return
142
143
if name == "ga":
0 commit comments