Merge pull request #31107 from drodil/local_docker_env

feat(dev): allow running example app with docker
This commit is contained in:
Patrik Oldsberg
2025-10-20 19:12:17 +02:00
committed by GitHub
7 changed files with 87 additions and 3 deletions
+1
View File
@@ -60,6 +60,7 @@
"@backstage/plugin-scaffolder-backend-module-notifications": "workspace:^",
"@backstage/plugin-search-backend": "workspace:^",
"@backstage/plugin-search-backend-module-catalog": "workspace:^",
"@backstage/plugin-search-backend-module-elasticsearch": "workspace:^",
"@backstage/plugin-search-backend-module-explore": "workspace:^",
"@backstage/plugin-search-backend-module-techdocs": "workspace:^",
"@backstage/plugin-search-backend-node": "workspace:^",
+11 -2
View File
@@ -15,18 +15,27 @@
*/
import { createBackend } from '@backstage/backend-defaults';
import { createBackendFeatureLoader } from '@backstage/backend-plugin-api';
import {
coreServices,
createBackendFeatureLoader,
} from '@backstage/backend-plugin-api';
const backend = createBackend();
// An example of how to group together and load multiple features. You can also
// access root-scoped services by adding `deps`.
const searchLoader = createBackendFeatureLoader({
*loader() {
deps: {
config: coreServices.rootConfig,
},
*loader({ config }) {
yield import('@backstage/plugin-search-backend');
yield import('@backstage/plugin-search-backend-module-catalog');
yield import('@backstage/plugin-search-backend-module-explore');
yield import('@backstage/plugin-search-backend-module-techdocs');
if (config.has('search.elasticsearch')) {
yield import('@backstage/plugin-search-backend-module-elasticsearch');
}
},
});