Fix auth URL compute

This commit is contained in:
Jai A 2022-06-24 22:44:47 -07:00
parent 371f14d2e4
commit ffc8f133c9
No known key found for this signature in database
GPG Key ID: CC88DE86F48BE019
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: {

View File

@ -280,6 +280,8 @@ export default {
branch: process.env.VERCEL_GIT_COMMIT_REF || 'master',
hash: process.env.VERCEL_GIT_COMMIT_SHA || 'unknown',
domain: getDomain(),
authURLBase:
process.env.BROWSER_BASE_URL || 'https://staging-api.modrinth.com/v2/',
},
publicRuntimeConfig: {
axios: {