plugins,packages: replace usages of ConfigReader.from
This commit is contained in:
@@ -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...');
|
||||
|
||||
Reference in New Issue
Block a user