diff --git a/packages/backend-common/src/discovery/HostDiscovery.test.ts b/packages/backend-common/src/discovery/HostDiscovery.test.ts index c15ffd79e8..b07716352e 100644 --- a/packages/backend-common/src/discovery/HostDiscovery.test.ts +++ b/packages/backend-common/src/discovery/HostDiscovery.test.ts @@ -88,9 +88,9 @@ describe('HostDiscovery', () => { backend: { baseUrl: 'http://localhost:40', listen: { port: 80, host: 'localhost' }, - discovery: { - catalog: 'http://catalog-backend:8080/api/catalog', - }, + }, + discovery: { + catalog: 'http://catalog-backend:8080/api/catalog', }, }), ); diff --git a/packages/backend-common/src/discovery/HostDiscovery.ts b/packages/backend-common/src/discovery/HostDiscovery.ts index 0fedf0643a..d9f507139d 100644 --- a/packages/backend-common/src/discovery/HostDiscovery.ts +++ b/packages/backend-common/src/discovery/HostDiscovery.ts @@ -1,5 +1,5 @@ /* - * Copyright 2023 The Backstage Authors + * Copyright 2020 The Backstage Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ export class HostDiscovery implements PluginEndpointDiscovery { * discovering the external URL, and the `.listen` and `.https` config * for the internal one. * - * Can be overridden by in config by providing a `backend.discovery` section with a `` key. + * Can be overridden by in config by providing a `discovery` section with a `` key. * * The basePath defaults to `/api`, meaning the default full internal * path for the `catalog` plugin will be `http://localhost:7007/api/catalog`. @@ -69,7 +69,7 @@ export class HostDiscovery implements PluginEndpointDiscovery { return new HostDiscovery( internalBaseUrl + basePath, externalBaseUrl + basePath, - config.getOptionalConfig('backend.discovery'), + config.getOptionalConfig('discovery'), ); }