You've already forked AstralRinth
forked from didirus/AstralRinth
Move auth domain to public runtime config (#246)
* Allow specifying a custom auth URL * Readd default * Move Host URL to top * wat * Move auth domain to public runtime config
This commit is contained in:
@@ -199,7 +199,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
authUrl() {
|
||||
return `${this.$axios.defaults.baseURL}auth/init?url=${process.env.domain}${this.$route.fullPath}`
|
||||
return `${this.$axios.defaults.baseURL}auth/init?url=${this.$store.app.$config.utils.domain}${this.$route.fullPath}`
|
||||
},
|
||||
userUrl() {
|
||||
return `/user/${this.$auth.user.id}`
|
||||
|
||||
@@ -171,7 +171,6 @@ export default {
|
||||
},
|
||||
env: {
|
||||
version: process.env.VERSION_ID || 'unknown',
|
||||
domain: getDomain(),
|
||||
},
|
||||
publicRuntimeConfig: {
|
||||
axios: {
|
||||
@@ -186,6 +185,9 @@ export default {
|
||||
analytics: {
|
||||
base_url: process.env.ARIADNE_URL,
|
||||
},
|
||||
utils: {
|
||||
domain: getDomain(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
authUrl() {
|
||||
return `${this.$axios.defaults.baseURL}auth/init?url=${process.env.domain}${this.$route.fullPath}`
|
||||
return `${this.$axios.defaults.baseURL}auth/init?url=${this.$store.app.$config.utils.domain}${this.$route.fullPath}`
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user