You've already forked AstralRinth
forked from didirus/AstralRinth
Fix random Nuxt internal server errors (#551)
* Fix random Nuxt internal server errors * Fix ratelimit key being exposed * Add GDPR clarification
This commit is contained in:
@@ -37,7 +37,9 @@ export default async function (context) {
|
||||
|
||||
if (!context.$auth.user) {
|
||||
return context.redirect(
|
||||
`${context.$axios.defaults.baseURL}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