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:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user