You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user