Fix auth URL compute
This commit is contained in:
parent
371f14d2e4
commit
ffc8f133c9
@ -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: {
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user