app-next: bind page1 route through config

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-12 17:26:56 +02:00
parent 2307fb1747
commit 3f47f0d9b9
2 changed files with 7 additions and 3 deletions
+3
View File
@@ -1,6 +1,9 @@
app:
experimental:
packages: 'all' # ✨
routes:
bindings:
plugin.pages.externalRoutes.pageX: plugin.pages.routes.pageX
extensions:
- apis.plugin.graphiql.browse.gitlab: true
+4 -3
View File
@@ -75,9 +75,10 @@ const app = createApp({
extensions: [entityPageExtension],
}),
],
bindRoutes({ bind }) {
bind(pagesPlugin.externalRoutes, { pageX: pagesPlugin.routes.pageX });
},
/* Handled through config instead */
// bindRoutes({ bind }) {
// bind(pagesPlugin.externalRoutes, { pageX: pagesPlugin.routes.pageX });
// },
});
// const legacyApp = createLegacyApp({ plugins: [legacyGraphiqlPlugin] });