Merge pull request #29855 from danieljelcic/fix/home-plugin-routes
feat: Export home plugin root page route
This commit is contained in:
@@ -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
|
||||
@@ -13,7 +13,9 @@ import { RouteRef } from '@backstage/frontend-plugin-api';
|
||||
|
||||
// @alpha (undocumented)
|
||||
const _default: FrontendPlugin<
|
||||
{},
|
||||
{
|
||||
root: RouteRef<undefined>;
|
||||
},
|
||||
{},
|
||||
{
|
||||
'page:home': ExtensionDefinition<{
|
||||
|
||||
@@ -69,4 +69,7 @@ const homePage = PageBlueprint.makeWithOverrides({
|
||||
export default createFrontendPlugin({
|
||||
pluginId: 'home',
|
||||
extensions: [homePage],
|
||||
routes: {
|
||||
root: rootRouteRef,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user