Add default values for env variables

This commit is contained in:
Ramon Wenger 2021-01-14 16:54:33 +01:00
parent da3070c774
commit 165f94c861
1 changed files with 4 additions and 4 deletions

View File

@ -8,13 +8,13 @@ module.exports = {
* ENV variables used in JS code need to be stringyfied, as they will be replaced in the code, and JS needs quotes * ENV variables used in JS code need to be stringyfied, as they will be replaced in the code, and JS needs quotes
* around strings * around strings
*/ */
VUE_APP_LOGO: JSON.stringify(process.env.VUE_APP_LOGO), VUE_APP_LOGO: JSON.stringify(process.env.VUE_APP_LOGO) || '"/static/logo.png"',
/* /*
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes * 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 // vvvv HTML PROPERTIES FROM HERE, NOT STRINGIFIED vvvv
VUE_APP_FAVICON_32: process.env.VUE_APP_FAVICON_32, VUE_APP_FAVICON_32: process.env.VUE_APP_FAVICON_32 || '/static/favicon-32x32.png',
VUE_APP_FAVICON_16: process.env.VUE_APP_FAVICON_16, VUE_APP_FAVICON_16: process.env.VUE_APP_FAVICON_16 || '/static/favicon-16x16.png',
VUE_APP_TITLE: process.env.VUE_APP_TITLE VUE_APP_TITLE: process.env.VUE_APP_TITLE || 'mySkillbox'
// ^^^^ HTML PROPERTIES TO HERE, NOT STRINGIFIED ^^^^ // ^^^^ HTML PROPERTIES TO HERE, NOT STRINGIFIED ^^^^
} }