From 7d9d18565426915800884e53f37da681a8d9d62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Fri, 3 Apr 2026 22:58:20 +0200 Subject: [PATCH] Inline catalog from options directly in createRouter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw Made-with: Cursor --- plugins/techdocs-backend/src/service/router.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/techdocs-backend/src/service/router.ts b/plugins/techdocs-backend/src/service/router.ts index 48b8afaf53..53e9d2003a 100644 --- a/plugins/techdocs-backend/src/service/router.ts +++ b/plugins/techdocs-backend/src/service/router.ts @@ -114,9 +114,9 @@ export async function createRouter( options: RouterOptions, ): Promise { const router = Router(); - const { publisher, config, logger, discovery, httpAuth, auth } = options; + const { publisher, config, logger, discovery, httpAuth, auth, catalog } = + options; - const catalogClient = options.catalog; const docsBuildStrategy = options.docsBuildStrategy ?? DefaultDocsBuildStrategy.fromConfig(config); const buildLogTransport = options.buildLogTransport; @@ -125,7 +125,7 @@ export async function createRouter( // when loading a single techdocs page. const entityLoader = new CachedEntityLoader({ auth, - catalog: catalogClient, + catalog, cache: options.cache, });