Merge pull request #29855 from danieljelcic/fix/home-plugin-routes

feat: Export home plugin root page route
This commit is contained in:
Andre Wanlin
2025-05-13 07:55:59 -05:00
committed by GitHub
3 changed files with 11 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home': patch
---
Export root page route from the home plugin to enable adding links/nav to it from outside the plugin
+3 -1
View File
@@ -13,7 +13,9 @@ import { RouteRef } from '@backstage/frontend-plugin-api';
// @alpha (undocumented)
const _default: FrontendPlugin<
{},
{
root: RouteRef<undefined>;
},
{},
{
'page:home': ExtensionDefinition<{
+3
View File
@@ -69,4 +69,7 @@ const homePage = PageBlueprint.makeWithOverrides({
export default createFrontendPlugin({
pluginId: 'home',
extensions: [homePage],
routes: {
root: rootRouteRef,
},
});