905dd952ac
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
654 B
654 B
@backstage/plugin-techdocs-backend
| @backstage/plugin-techdocs-backend |
|---|
| minor |
BREAKING DefaultTechDocsCollator has a new required option tokenManager. See the create-app changelog for how to create a tokenManager and add it to the PluginEnvironment. It can then be passed to the collator in createPlugin:
// packages/backend/src/plugins/search.ts
...
export default async function createPlugin({
...
+ tokenManager,
}: PluginEnvironment) {
...
indexBuilder.addCollator({
defaultRefreshIntervalSeconds: 600,
collator: DefaultTechDocsCollator.fromConfig(config, {
discovery,
logger,
+ tokenManager,
}),
});
...
}