import { EggAppConfig , EggAppInfo , PowerPartial } from 'egg' ; export default ( appInfo ) => { const config = { } as PowerPartial < EggAppConfig > ; config . keys = appInfo . name + '_1551875313892_8568' ; config . typeorm = { type : 'mysql' , host : 'localhost' , port : 3306 , username : 'root' , password : '123456' , database : 'test' , synchronize : true , logging : false , entities : [ 'app/entity/**/*.ts' ] , migrations : [ 'app/migration/**/*.ts' ] , subscribers : [ 'app/subscriber/**/*.ts' ] , cli : { entitiesDir : 'app/entity' , migrationsDir : 'app/migration' , subscribersDir : 'app/subscriber' , } , } ; config . middleware = [ ] ; const bizConfig = { sourceUrl : `https://github.com/eggjs/examples/tree/master/${ appInfo . name }` , } ; return { ... config , ... bizConfig , } ; } ;