You've already forked pages
forked from didirus/AstralRinth
Allow Base URL to be set by environment variable (#242)
* Switch site to use axios base url * Fix team invites * Fix find/replace setting the wrong thing * Fix analytics being blocking, small issues * Allow base url to be set by env variable
This commit is contained in:
@@ -174,6 +174,9 @@ export default {
|
||||
domain: getDomain(),
|
||||
},
|
||||
publicRuntimeConfig: {
|
||||
axios: {
|
||||
browserBaseURL: process.env.API_URL,
|
||||
},
|
||||
ads: {
|
||||
ghostMode: process.env.ENABLE_ADS == null,
|
||||
GeoEdgeId: process.env.GEOEDGE_ID,
|
||||
@@ -184,6 +187,11 @@ export default {
|
||||
base_url: process.env.ARIADNE_URL,
|
||||
},
|
||||
},
|
||||
privateRuntimeConfig: {
|
||||
axios: {
|
||||
baseURL: process.env.API_URL,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
function getDomain() {
|
||||
|
||||
Reference in New Issue
Block a user