@@ -9,5 +9,23 @@ This resulted in 404 errors in newly bootstrapped backstage applications,
|
||||
when adding components without configuration.
|
||||
|
||||
To fix this in an existing backstage application, the locationAnalyzer needs
|
||||
to be added to the `packages/backend/src/plugins/catalog.ts` file.
|
||||
Check out `/backstage/packages/create-app/templates/default-app/packages/backend/src/plugins/catalog.ts` for reference.
|
||||
to be carried from the builder to the router in the
|
||||
`packages/backend/src/plugins/catalog.ts` file.
|
||||
|
||||
```diff
|
||||
const builder = new CatalogBuilder(env);
|
||||
const {
|
||||
entitiesCatalog,
|
||||
locationsCatalog,
|
||||
higherOrderOperation,
|
||||
+ locationAnalyzer,
|
||||
} = await builder.build();
|
||||
// ...
|
||||
return await createRouter({
|
||||
entitiesCatalog,
|
||||
locationsCatalog,
|
||||
higherOrderOperation,
|
||||
+ locationAnalyzer,
|
||||
logger: env.logger,
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user