From 4599a705aeb5d7044c4107bcc992c10105b42fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 24 Mar 2021 11:55:31 +0100 Subject: [PATCH] add a diff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/curly-fishes-speak.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.changeset/curly-fishes-speak.md b/.changeset/curly-fishes-speak.md index 6654855a46..8cd53daeb4 100644 --- a/.changeset/curly-fishes-speak.md +++ b/.changeset/curly-fishes-speak.md @@ -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, + }); +```