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:
Geometrically 2021-05-28 12:26:05 -07:00 committed by GitHub
parent 5017c5a5f1
commit e22a586a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {