mirror of
https://github.com/penpot/penpot.git
synced 2025-06-26 14:57:00 +02:00
🐛 Fix worker configuration initialization.
This commit is contained in:
parent
c3a5156a6c
commit
d67dbcf2aa
8 changed files with 50 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue