Fix auth URL compute

This commit is contained in:
Jai A
2022-06-24 22:44:47 -07:00
parent 371f14d2e4
commit ffc8f133c9
2 changed files with 5 additions and 1 deletions

View File

@@ -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: {

View File

@@ -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: {