Add default values for env variables
This commit is contained in:
parent
da3070c774
commit
165f94c861
|
|
@ -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
|
||||
* 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
|
||||
*/
|
||||
// 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,
|
||||
VUE_APP_TITLE: process.env.VUE_APP_TITLE
|
||||
VUE_APP_FAVICON_32: process.env.VUE_APP_FAVICON_32 || '/static/favicon-32x32.png',
|
||||
VUE_APP_FAVICON_16: process.env.VUE_APP_FAVICON_16 || '/static/favicon-16x16.png',
|
||||
VUE_APP_TITLE: process.env.VUE_APP_TITLE || 'mySkillbox'
|
||||
// ^^^^ HTML PROPERTIES TO HERE, NOT STRINGIFIED ^^^^
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue