Skip to content

Commit 1fccae6

Browse files
authored
Update API base URL environment variable
1 parent b17a625 commit 1fccae6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/kernelbot/api/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ async def cli_auth(auth_provider: str, code: str, state: str, db_context=Depends
253253
raise HTTPException(status_code=400, detail=f"Invalid state parameter: {e}") from None
254254

255255
# Determine API URL (handle potential None value)
256-
api_base_url = os.environ.get("HEROKU_APP_DEFAULT_DOMAIN_NAME") or os.getenv("POPCORN_API_URL")
256+
api_base_url = os.environ.get("DISCORD_CLUSTER_MANAGER_API_BASE_URL") or os.getenv("POPCORN_API_URL")
257257
if not api_base_url:
258258
raise HTTPException(
259259
status_code=500,
260260
detail="Redirect URI base not configured."
261-
"Set HEROKU_APP_DEFAULT_DOMAIN_NAME or POPCORN_API_URL.",
261+
"Set DISCORD_CLUSTER_MANAGER_API_BASE_URL or POPCORN_API_URL.",
262262
)
263263
redirect_uri_base = api_base_url.rstrip("/")
264264
redirect_uri = f"https://{redirect_uri_base}/auth/cli/{auth_provider}"

0 commit comments

Comments
 (0)