Change template keys in generate-config script

This commit is contained in:
Felipe Knorr Kuhn 2022-10-15 19:45:15 -07:00
parent 81d35d9401
commit b77fe0dca2
No known key found for this signature in database
GPG key ID: 79619B52BB097C1A

View file

@ -75,7 +75,7 @@ const newConfig = `(function (window) {
const newConfigTemplate = `(function (window) {
window.__env = window.__env || {};${settings.reduce((str, obj) => `${str}
window.__env.${obj.key} = ${typeof obj.value === 'string' ? `'\${${obj.key}}'` : `\${${obj.key}}`};`, '')}
window.__env.${obj.key} = ${typeof obj.value === 'string' ? `'\${__${obj.key}__}'` : `\${__${obj.key}__}`};`, '')}
window.__env.GIT_COMMIT_HASH = '${gitCommitHash}';
window.__env.PACKAGE_JSON_VERSION = '${packetJsonVersion}';
}(this));`;