后台:独立数据库,路径转发
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { EggAppConfig, PowerPartial } from 'egg';
|
||||
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
||||
import defaultConfig from './config.default';
|
||||
|
||||
export default () => {
|
||||
const config: PowerPartial<EggAppConfig> = {};
|
||||
export default (appInfo: EggAppInfo) => {
|
||||
const config = {} as PowerPartial<EggAppConfig>;
|
||||
|
||||
config.cluster = {
|
||||
listen: {
|
||||
port: 7500
|
||||
}
|
||||
// add your special config in here
|
||||
|
||||
// the return config will combines to EggAppConfig
|
||||
return {
|
||||
...defaultConfig(appInfo),
|
||||
...config,
|
||||
};
|
||||
return config;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user