Red HatTomas KralExplainer
Prepare your custom plug-ins for Red Hat Developer Hub 2.1
Summary
Red Hat Developer Hub 2.1 removes the legacy front-end system and Scalprum module federation framework, eliminating roughly 40,000 lines of code. Custom plug-ins must adopt the new front-end system using Backstage extension blueprints and export an ./alpha entry point alongside the root export to support both versions. Plugin authors follow a six-step migration workflow: discover exports, choose the alpha export, migrate extensions, update package.json, add a dev entry, and verify types. Platform administrators must convert old dynamicPlugins.frontend YAML mount points to app.extensions blocks, as configuration now merges via arrays rather than object keys. The post provides migration skills for coding agents, local testing with rhdh-local, and a checklist to prepare for upgrading to version 2.1.
Context
Red Hat Developer Hub 2.1 introduces major architectural changes including a new front-end system and standalone OCI plugin images, requiring custom plug-in updates before upgrading.
Approach / What changed
Plugin authors follow a six-step migration workflow: discover exports, choose the ./alpha export, migrate extensions to Backstage extension blueprints, update package.json with dual exports, add a local dev entry point using @backstage/frontend-defaults, and verify with TypeScript. Platform administrators convert dynamicPlugins.frontend YAML mount points to app.extensions blocks, and remove old wrapper paths from dynamic-plugins.yaml.
Takeaways
Custom plug-ins must implement Backstage extension blueprints (PageBlueprint, EntityCardBlueprint) and export an ./alpha entry point to work in Red Hat Developer Hub 2.1.
Platform administrators must replace old dynamicPlugins.frontend mount points in YAML with app.extensions blocks, which are arrays that overwrite entirely when defined in multiple files.
The old front-end system and Scalprum have been removed; plug-ins relying on dynamic Scalprum mount points will fail to load on startup in version 2.1.
FAQ
What front-end changes require custom plug-in updates?
Red Hat Developer Hub 2.1 removes the old front-end system and Scalprum. Plug-ins must use Backstage extension blueprints with an ./alpha export to run in the new application shell.
How can a plug-in support both 1.10 and 2.1?
Export both the root export (for 1.10) and ./alpha (for 2.1) in package.json, and use alpha exports in TypeScript code to implement the new front-end system while keeping backward compatibility.
How do administrators configure plug-in placement in 2.1?
Use app.extensions in app-config.yaml to override defaults; arrays replace entirely when multiple files define them, so define all overrides in one file.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.