mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
feat: config merge
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user