http_config.py
398 Bytes
"""HTTP-facing configuration helpers for the web API bootstrap layer."""
from __future__ import annotations
import os
def resolve_frontend_dev_server_url() -> str | None:
"""Return the configured frontend dev server URL, if enabled."""
value = os.environ.get("BETTAFISH_FRONTEND_DEV_URL", "").strip()
return value.rstrip("/") or None
__all__ = ["resolve_frontend_dev_server_url"]