mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-02-13 06:15:34 +00:00
27 lines
558 B
TypeScript
27 lines
558 B
TypeScript
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
|
|
|
export type DefaultConfig = PowerPartial<EggAppConfig>;
|
|
|
|
export default (appInfo: EggAppInfo) => {
|
|
const config = {} as DefaultConfig;
|
|
|
|
config.orm = {
|
|
type: 'mysql',
|
|
host: '127.0.0.1',
|
|
port: 3306,
|
|
username: 'root',
|
|
password: '123123',
|
|
database: 'cool-admin-next',
|
|
synchronize: true,
|
|
logging: false,
|
|
}
|
|
|
|
config.logger = {
|
|
coreLogger: {
|
|
consoleLevel: 'ERROR'
|
|
}
|
|
}
|
|
|
|
return config;
|
|
};
|