mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix worker configuration initialization.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user