Allow specifying a custom auth URL (#245)

* Allow specifying a custom auth URL

* Readd default

* Move Host URL to top

* wat
This commit is contained in:
Geometrically
2021-05-28 13:57:13 -07:00
committed by GitHub
parent fd17e5a4c0
commit a061fb5421

View File

@@ -191,7 +191,9 @@ export default {
function getDomain() {
if (process.env.NODE_ENV === 'production') {
if (process.env.HEROKU_APP_NAME) {
if (process.env.HOST_URL) {
return process.env.HOST_URL
} else if (process.env.HEROKU_APP_NAME) {
return `https://${process.env.HEROKU_APP_NAME}.herokuapp.com`
} else if (process.env.VERCEL_URL) {
return `https://${process.env.VERCEL_URL}`