Merge pull request #19442 from backstage/rugvip/linguist-fix
linguist-backend: fix config value being required
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-linguist-backend': patch
|
||||
---
|
||||
|
||||
When creating the router using `createRouterFromConfig` or using the plugin for the new backend system the `linguist.useSourceLocation` configuration is now optional.
|
||||
@@ -150,9 +150,8 @@ export async function createRouterFromConfig(routerOptions: RouterOptions) {
|
||||
);
|
||||
}
|
||||
pluginOptions.batchSize = config.getOptionalNumber('linguist.batchSize');
|
||||
pluginOptions.useSourceLocation = config.getBoolean(
|
||||
'linguist.useSourceLocation',
|
||||
);
|
||||
pluginOptions.useSourceLocation =
|
||||
config.getOptionalBoolean('linguist.useSourceLocation') ?? false;
|
||||
pluginOptions.age = config.getOptionalConfig('linguist.age') as
|
||||
| HumanDuration
|
||||
| undefined;
|
||||
|
||||
Reference in New Issue
Block a user