diff --git a/packages/backend-common/src/discovery/HostDiscovery.ts b/packages/backend-common/src/discovery/HostDiscovery.ts index e8af78b064..e2bd79824a 100644 --- a/packages/backend-common/src/discovery/HostDiscovery.ts +++ b/packages/backend-common/src/discovery/HostDiscovery.ts @@ -118,3 +118,16 @@ export class HostDiscovery implements PluginEndpointDiscovery { return `${this.externalBaseUrl}/${pluginId}`; } } + +/** + * SingleHostDiscovery is a basic PluginEndpointDiscovery implementation + * that assumes that all plugins are hosted in a single deployment. + * + * The deployment may be scaled horizontally, as long as the external URL + * is the same for all instances. However, internal URLs will always be + * resolved to the same host, so there won't be any balancing of internal traffic. + * + * @public + * @deprecated Use {@link HostDiscovery} instead + */ +export const SingleHostDiscovery = HostDiscovery; diff --git a/packages/backend-common/src/discovery/index.ts b/packages/backend-common/src/discovery/index.ts index 335199049f..5c7f5300c0 100644 --- a/packages/backend-common/src/discovery/index.ts +++ b/packages/backend-common/src/discovery/index.ts @@ -13,19 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -import { HostDiscovery } from './HostDiscovery'; -/** - * SingleHostDiscovery is a basic PluginEndpointDiscovery implementation - * that assumes that all plugins are hosted in a single deployment. - * - * The deployment may be scaled horizontally, as long as the external URL - * is the same for all instances. However, internal URLs will always be - * resolved to the same host, so there won't be any balancing of internal traffic. - * - * @public - * @deprecated Use {@link HostDiscovery} instead - */ -export const SingleHostDiscovery = HostDiscovery; -export { HostDiscovery } from './HostDiscovery'; +export { HostDiscovery, SingleHostDiscovery } from './HostDiscovery'; export type { PluginEndpointDiscovery } from './types';