plugins,packages: replace usages of ConfigReader.from

This commit is contained in:
Patrik Oldsberg
2020-12-15 19:04:50 +01:00
parent a3b2c5a68b
commit 1da7d2c657
34 changed files with 174 additions and 322 deletions
@@ -41,18 +41,13 @@ export async function startStandaloneServer(
options: ServerOptions,
): Promise<Server> {
const logger = options.logger.child({ service: 'techdocs-backend' });
const config = ConfigReader.fromConfigs([
{
context: '',
data: {
techdocs: {
publisher: {
type: 'local',
},
},
const config = new ConfigReader({
techdocs: {
publisher: {
type: 'local',
},
},
]);
});
const discovery = SingleHostDiscovery.fromConfig(config);
logger.debug('Creating application...');