lark
Version:
A node.js framework based on koa. Our goal is to build the best industrial node.js framework for high concurrency and high flow application.
18 lines (15 loc) • 433 B
JavaScript
/**
* Load default configs
**/
;
const debug = require('debug')('lark.load-configs');
const path = require('path');
module.exports = async (app) => {
debug('loading');
const configObject = app.config.config;
app.config.reset();
await app.config.use(path.join(__dirname, '../configs'));
await app.config.use(app.package.lark.configs);
await app.config.use(configObject);
debug('done');
};