feat: config merge

This commit is contained in:
xiaojunnuo
2023-06-26 12:26:59 +08:00
parent 99522fb49a
commit fdc25dc0d7
11 changed files with 58 additions and 20 deletions
@@ -1,6 +1,8 @@
import { MidwayConfig } from '@midwayjs/core';
import { load } from './loader';
import _ from 'lodash';
export default {
const preview = {
/**
* 演示环境
*/
@@ -8,3 +10,7 @@ export default {
enabled: true,
},
} as MidwayConfig;
_.merge(preview, load('preview'));
export default preview;