fix: Follow-up of #32345
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
@@ -20,7 +20,7 @@ import { createApp } from '@backstage/frontend-defaults';
|
||||
import { ConfigReader } from '@backstage/core-app-api';
|
||||
import catalogPlugin from '@backstage/plugin-catalog/alpha';
|
||||
|
||||
import { apis } from './apis';
|
||||
import { appApis, techdocsPluginApis } from './apis';
|
||||
import { configLoader } from './config';
|
||||
|
||||
import { createFrontendModule } from '@backstage/frontend-plugin-api';
|
||||
@@ -32,13 +32,15 @@ import {
|
||||
|
||||
const appPlugin = createFrontendModule({
|
||||
pluginId: 'app',
|
||||
extensions: [...apis, SidebarContent],
|
||||
extensions: [...appApis, SidebarContent],
|
||||
});
|
||||
|
||||
const app = createApp({
|
||||
features: [
|
||||
appPlugin,
|
||||
techdocsPlugin,
|
||||
techdocsPlugin.withOverrides({
|
||||
extensions: [...techdocsPluginApis],
|
||||
}),
|
||||
catalogPlugin,
|
||||
techDocsThemeToggleAddonModule,
|
||||
techdocsLiveReloadAddonModule,
|
||||
|
||||
@@ -157,7 +157,7 @@ class TechDocsDevApi implements TechDocsApi {
|
||||
}
|
||||
}
|
||||
|
||||
export const apis = [
|
||||
export const techdocsPluginApis = [
|
||||
ApiBlueprint.make({
|
||||
name: 'techdocs-dev-storage',
|
||||
params: defineParams =>
|
||||
@@ -194,6 +194,9 @@ export const apis = [
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
];
|
||||
|
||||
export const appApis = [
|
||||
ApiBlueprint.make({
|
||||
name: 'scm-integrations',
|
||||
params: defineParams =>
|
||||
|
||||
Reference in New Issue
Block a user