From a061fb54213f1abd24474fd7842677f5e334528b Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Fri, 28 May 2021 13:57:13 -0700 Subject: [PATCH] Allow specifying a custom auth URL (#245) * Allow specifying a custom auth URL * Readd default * Move Host URL to top * wat --- nuxt.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index cab4d75ee..3f1dbf664 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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}`