import { ConnectionOptions } from 'typeorm' ; import { SnakeNamingStrategy } from 'typeorm-naming-strategies' ; const config = { type : 'postgres' , host : process . env . PG_HOST , port : Number ( process . env . PG_PORT ) , username : process . env . POSTGRES_USER , password : process . env . POSTGRES_PASSWORD , database : process . env . POSTGRES_DB , synchronize : false , logging : false , entities : [ 'src/typeorm/entities/**/*.ts' ] , migrations : [ 'src/typeorm/migrations/**/*.ts' ] , subscribers : [ 'src/typeorm/subscriber/**/*.ts' ] , cli : { entitiesDir : 'src/typeorm/entities' , migrationsDir : 'src/typeorm/migrations' , subscribersDir : 'src/typeorm/subscriber' , } , namingStrategy : new SnakeNamingStrategy ( ) , } ; export = config ;