mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-05 01:48:13 +00:00
16 lines
421 B
TypeScript
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;
|
|
};
|