Fix login button

This commit is contained in:
Jai A
2022-04-18 10:54:15 -07:00
parent 1020904fe0
commit 06d921d855
2 changed files with 7 additions and 2 deletions

View File

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

View File

@@ -5,5 +5,8 @@
"use": "@nuxtjs/vercel-builder", "use": "@nuxtjs/vercel-builder",
"config": {} "config": {}
} }
] ],
"github": {
"silent": true
}
} }