Fix auth URL compute

This commit is contained in:
Jai A
2022-06-24 22:44:47 -07:00
parent 371f14d2e4
commit ffc8f133c9
2 changed files with 5 additions and 1 deletions

View File

@@ -391,7 +391,9 @@ export default {
},
computed: {
authUrl() {
return `${this.$axios.defaults.baseURL}auth/init?url=${process.env.domain}${this.$route.path}`
return `${
process.env.BROWSER_BASE_URL || 'https://staging-api.modrinth.com/v2/'
}auth/init?url=${process.env.domain}${this.$route.path}`
},
},
watch: {