From 969515dbabc1e962ab71b32c6e74754a7d511cfe Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Tue, 23 Jan 2024 09:43:05 +0100 Subject: [PATCH] docs: highlight convertLegacyRouteRefs Signed-off-by: Vincenzo Scamporlino --- docs/frontend-system/building-plugins/migrating.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/frontend-system/building-plugins/migrating.md b/docs/frontend-system/building-plugins/migrating.md index aafa7b8986..1cb1325421 100644 --- a/docs/frontend-system/building-plugins/migrating.md +++ b/docs/frontend-system/building-plugins/migrating.md @@ -174,12 +174,15 @@ The new `createPlugin` function doesn't accept apis anymore as apis are now exte // bind all the extensions to the plugin /* highlight-next-line */ extensions: [homePage, exampleWorkApi], - routes: { + // convert old route refs to the new system + /* highlight-next-line */ + routes: convertLegacyRouteRefs({ ... - }, - externalRoutes: { + }), + /* highlight-next-line */ + externalRoutes: convertLegacyRouteRefs({ ... - }, + }), }); ```