import { ConfigService } from '@nestjs/config'; export function pgConfig(config: ConfigService): unknown { return { type: 'postgres', url: config.getOrThrow('DATABASE_URL'), cache: true, synchronize: false, autoLoadEntities: true, }; }