expose discovery.endpoints to frontend

to use FrontendHostDiscovery, it must be exposed
`discovery.endpoints `configuration.

fix #18291

Signed-off-by: Hitoshi Kamezaki <kamezaki@ap-com.co.jp>
This commit is contained in:
Hitoshi Kamezaki
2023-06-19 11:14:07 +09:00
parent 5c953aba17
commit ac677bc30a
2 changed files with 44 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Expose discovery.endpoints configuration to use FrontendHostDiscovery
+39
View File
@@ -122,4 +122,43 @@ export interface Config {
* @visibility frontend
*/
enableExperimentalRedirectFlow?: boolean;
/**
* Discovery options.
*
* @visibility frontend
*/
discovery?: {
/**
* Endpoints
*
* A list of target baseUrls and the associated plugins.
*
* @visibility frontend
*/
endpoints?: Array<{
/**
* The target baseUrl to use for the plugin
*
* Can be either a string or an object with internal and external keys. (Internal is used for the backend, external for the frontend)
* Targets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.
*
* @visibility frontend
*/
target:
| string
| {
/**
* @visibility frontend
*/
external: string;
};
/**
* Array of plugins which use the target baseUrl.
*
* @visibility frontend
*/
plugins: Array<string>;
}>;
};
}