From e22a586a41cb078ddee79e211e117eb2273e19a7 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Fri, 28 May 2021 12:26:05 -0700 Subject: [PATCH] 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 --- nuxt.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nuxt.config.js b/nuxt.config.js index 07717e169..03ead829c 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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() {