add a diff

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-03-24 11:55:31 +01:00
parent 9562dbb483
commit 4599a705ae
+20 -2
View File
@@ -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,
});
```