Skip to content

Commit 71d3d7c

Browse files
committed
Accepting NEXTMV_ENDPOINT var
1 parent 3aa6c36 commit 71d3d7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

nextmv/nextmv/cloud/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def __post_init__(self):
161161
if not self.url:
162162
self.url = "https://api.cloud.nextmv.io"
163163

164+
endpoint_env = os.getenv("NEXTMV_ENDPOINT")
165+
if endpoint_env is not None:
166+
self.url = f"https://{endpoint_env}"
167+
164168
if self.api_key is not None and self.api_key != "":
165169
self._set_headers_api_key(self.api_key)
166170
return

0 commit comments

Comments
 (0)