Skip to content

Commit 7f5aa8b

Browse files
authored
Merge branch 'main' into adding-pg-upgrade-prepare
2 parents b9d2a8d + 7fee08f commit 7f5aa8b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/cli/src/lib/pg/host.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export default function () {
2-
const host = process.env.HEROKU_DATA_HOST || process.env.HEROKU_POSTGRESQL_HOST
3-
return host ? host : 'api.data.heroku.com'
2+
return process.env.HEROKU_DATA_HOST || 'api.data.heroku.com'
43
}

packages/cli/src/lib/redis/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export type RedisFormationWaitResponse = {
6666
type HttpVerb = 'GET' | 'POST' | 'PATCH' | 'DELETE' | 'PUT'
6767

6868
export default (app: string, database: string | undefined, json: boolean, heroku: APIClient) => {
69-
const HOST = process.env.HEROKU_REDIS_HOST || 'api.data.heroku.com'
69+
const HOST = process.env.HEROKU_DATA_HOST || process.env.HEROKU_REDIS_HOST || 'api.data.heroku.com'
7070
const ADDON = process.env.HEROKU_REDIS_ADDON_NAME || 'heroku-redis'
7171

7272
return {

0 commit comments

Comments
 (0)