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