The Heroku Postgres addon provides DB connection details as postgres://user:pw@host:port in the DATABASE_URL env var.
I'm wondering how to configure a NestJS app using TypeOrm, because all the examples look like this:
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'postgres',
host: '...',
port: 5432,
username: '...',
password: '...',
}),
],
})