@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function getHubUrl

    • Hub-service base URL from the client config. runtime.app.env.DX_HUB_URL is set by the bundler config plugin from the build's environment, so surfaces without a bundler (the CLI) fall back to runtime.services.hub.url — the key the dx hub admin commands already read — and finally to DEFAULT_HUB_URL, so no surface can be left with no hub to talk to.

      NOTE: The gates that treat the presence of DX_HUB_URL as "this is a gated deployment" read the raw config path rather than this resolver, since a default would silently arm them.

      Parameters

      • client: Pick<Client, "config">

      Returns string