feat(backend): add extensionPointFactoryMiddleware to createBackend

Allow the backend to reimplement extension point outputs at creation
time via a new extensionPointFactoryMiddleware option on createBackend().
Each middleware entry declaratively targets a specific extension point
by reference and the framework handles matching and pass-through
automatically.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
This commit is contained in:
Jack Palmer
2026-04-07 09:34:54 +01:00
parent 7d5a3a2567
commit 3595c974f6
12 changed files with 323 additions and 22 deletions
@@ -0,0 +1,5 @@
---
'@backstage/backend-app-api': minor
---
Added `ExtensionPointFactoryMiddleware` type and `createExtensionPointFactoryMiddleware` helper to reimplement extension point outputs at backend creation time.
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Added `extensionPointFactoryMiddleware` option to `createBackend()` to reimplement extension point outputs at backend initialization time. Also re-exports `ExtensionPointFactoryMiddleware` type and `createExtensionPointFactoryMiddleware` helper from `@backstage/backend-app-api`.