cool-admin-midway/src/config/config.default.ts
2021-01-20 17:37:03 +08:00

16 lines
421 B
TypeScript

import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
export type DefaultConfig = PowerPartial<EggAppConfig>;
export default (appInfo: EggAppInfo) => {
const config = {} as DefaultConfig;
// use for cookie sign key, should change to your own and keep security
config.keys = appInfo.name + '_1611125891022_7317';
// add your config here
config.middleware = ['reportMiddleware'];
return config;
};