diff --git a/pan3d/utils.py b/pan3d/utils.py index 6c99f199..198aae4e 100644 --- a/pan3d/utils.py +++ b/pan3d/utils.py @@ -52,9 +52,8 @@ async def coroutine(): def is_cloud_env(): - cloud_env_keys = ["binder"] - jupyterhub_base_url = os.environ.get("JUPYTERHUB_BASE_URL") - return jupyterhub_base_url and any(k in jupyterhub_base_url for k in cloud_env_keys) + cloud_env_vars = ["BINDER_REQUEST"] + return any(os.environ.get(k) for k in cloud_env_vars) initial_state = {