frontend-app-api: isolate invalid feature flag registrations

Wrap each feature flag registration in a try/catch so that a single
invalid flag name (e.g. containing a slash) is reported through the
error collector instead of crashing the entire app at bootstrap.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-23 00:38:05 +02:00
parent 3b8c0557c6
commit b6ca666812
6 changed files with 355 additions and 19 deletions
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
Invalid feature flag declarations no longer crash the app during bootstrap. They are now reported through the error collector and skipped, letting the rest of the app load normally.