1 |
|
2 |
|
3 | const util = require('./util')
|
4 |
|
5 | module.exports = function (addon) {
|
6 | let host = process.env.HEROKU_POSTGRESQL_HOST
|
7 |
|
8 | if (host) return `https://${host}`
|
9 | if (addon && util.starterPlan(addon)) return 'https://postgres-starter-api.heroku.com'
|
10 | return 'https://postgres-api.heroku.com'
|
11 | }
|