From d0f52741e40b4a5735f0963c25377967bd3ce1bd Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 12 Jan 2021 22:38:35 +0100 Subject: [PATCH] Add code comment --- client/config/prod.env.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/config/prod.env.js b/client/config/prod.env.js index f64aec60..08ea0aa8 100644 --- a/client/config/prod.env.js +++ b/client/config/prod.env.js @@ -4,7 +4,14 @@ module.exports = { HEP_URL: JSON.stringify(process.env.HEP_URL), MATOMO_HOST: JSON.stringify(process.env.MATOMO_HOST), MATOMO_SITE_ID: JSON.stringify(process.env.MATOMO_SITE_ID), + /* + * ENV variables used in JS code need to be stringyfied, as they will be replaced in the code, and JS needs quotes + * around strings + */ VUE_APP_LOGO: JSON.stringify(process.env.VUE_APP_LOGO), + /* + * Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes + */ // vvvv HTML PROPERTIES FROM HERE, NOT STRINGIFIED vvvv VUE_APP_FAVICON_32: process.env.VUE_APP_FAVICON_32, VUE_APP_FAVICON_16: process.env.VUE_APP_FAVICON_16