fix: allow overriding of stackoverflow configuration

Make it possible to override the config when instantiating for more flexibility.

Signed-off-by: Scott Guymer <scott.guymer@philips.com>
This commit is contained in:
Scott Guymer
2022-12-02 16:48:22 +01:00
parent 8512673a8e
commit 06f6a4f0f1
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-stack-overflow-backend': minor
---
Enable configuration override for StackOverflow backend plugin when instantiating the search indexer. This makes it possible to set different configuration for frontend and backend of the plugin.
@@ -95,11 +95,11 @@ export class StackOverflowQuestionsCollatorFactory
'https://api.stackexchange.com/2.2';
const maxPage = options.maxPage || 100;
return new StackOverflowQuestionsCollatorFactory({
...options,
baseUrl,
maxPage,
apiKey,
apiAccessToken,
...options,
});
}