Merge pull request #26300 from backstage/freben/backend-forth

adjust the discovery config again
This commit is contained in:
Fredrik Adelöw
2024-08-28 17:04:22 +02:00
committed by GitHub
2 changed files with 27 additions and 22 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Move down the discovery config to be in the root
+22 -22
View File
@@ -374,28 +374,6 @@ export interface Config {
>;
};
/**
* Options used by the default discovery service.
*/
discovery?: {
/**
* A list of target baseUrls and the associated plugins.
*/
endpoints: Array<{
/**
* The target base URL to use for the plugin.
*
* Can be either a string or an object with internal and external keys.
* Targets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.
*/
target: string | { internal: string; external: string };
/**
* Array of plugins which use the target base URL.
*/
plugins: string[];
}>;
};
/** Database connection configuration, select base database type using the `client` field */
database: {
/** Default database client to use */
@@ -574,4 +552,26 @@ export interface Config {
}>;
};
};
/**
* Options used by the default discovery service.
*/
discovery?: {
/**
* A list of target baseUrls and the associated plugins.
*/
endpoints: Array<{
/**
* The target base URL to use for the plugin.
*
* Can be either a string or an object with internal and external keys.
* Targets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.
*/
target: string | { internal: string; external: string };
/**
* Array of plugins which use the target base URL.
*/
plugins: string[];
}>;
};
}