You've already forked AstralRinth
forked from didirus/AstralRinth
Fix auth URL compute
This commit is contained in:
@@ -391,7 +391,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
authUrl() {
|
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: {
|
watch: {
|
||||||
|
|||||||
@@ -280,6 +280,8 @@ export default {
|
|||||||
branch: process.env.VERCEL_GIT_COMMIT_REF || 'master',
|
branch: process.env.VERCEL_GIT_COMMIT_REF || 'master',
|
||||||
hash: process.env.VERCEL_GIT_COMMIT_SHA || 'unknown',
|
hash: process.env.VERCEL_GIT_COMMIT_SHA || 'unknown',
|
||||||
domain: getDomain(),
|
domain: getDomain(),
|
||||||
|
authURLBase:
|
||||||
|
process.env.BROWSER_BASE_URL || 'https://staging-api.modrinth.com/v2/',
|
||||||
},
|
},
|
||||||
publicRuntimeConfig: {
|
publicRuntimeConfig: {
|
||||||
axios: {
|
axios: {
|
||||||
|
|||||||
Reference in New Issue
Block a user