You've already forked AstralRinth
forked from didirus/AstralRinth
Fix auth URL using staging (#556)
This commit is contained in:
@@ -391,9 +391,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
authUrl() {
|
authUrl() {
|
||||||
return `${
|
return `${process.env.authURLBase}auth/init?url=${process.env.domain}${this.$route.path}`
|
||||||
process.env.BROWSER_BASE_URL || 'https://staging-api.modrinth.com/v2/'
|
|
||||||
}auth/init?url=${process.env.domain}${this.$route.path}`
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
@@ -37,9 +37,7 @@ export default async function (context) {
|
|||||||
|
|
||||||
if (!context.$auth.user) {
|
if (!context.$auth.user) {
|
||||||
return context.redirect(
|
return context.redirect(
|
||||||
`${
|
`${process.env.authURLBase}auth/init?url=${process.env.domain}${context.route.fullPath}`
|
||||||
process.env.BROWSER_BASE_URL || 'https://staging-api.modrinth.com/v2/'
|
|
||||||
}auth/init?url=${process.env.domain}${context.route.fullPath}`
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user