🐛 Fix worker configuration initialization.

This commit is contained in:
Andrey Antukh 2020-05-12 13:03:49 +02:00
parent c3a5156a6c
commit d67dbcf2aa
8 changed files with 50 additions and 17 deletions

View file

@ -95,6 +95,7 @@ function readLocales() {
function readConfig(data) {
const publicURL = process.env.UXBOX_PUBLIC_URL;
const backendURL = process.env.UXBOX_BACKEND_URL;
const demoWarn = process.env.UXBOX_DEMO_WARNING;
const deployDate = process.env.UXBOX_DEPLOY_DATE;
const deployCommit = process.env.UXBOX_DEPLOY_COMMIT;
@ -107,6 +108,10 @@ function readConfig(data) {
cfg.publicURL = publicURL;
}
if (backendURL !== undefined) {
cfg.backendURL = backendURL;
}
if (deployDate !== undefined) {
cfg.deployDate = deployDate;
}