Add code comment

This commit is contained in:
Ramon Wenger 2021-01-12 22:38:35 +01:00
parent 767d7a6d87
commit d0f52741e4
1 changed files with 7 additions and 0 deletions

View File

@ -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