mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05:00
🎉 Add deployCommit and deployDate to config object.
This commit is contained in:
parent
d506c9b562
commit
7430a9b332
1 changed files with 10 additions and 0 deletions
|
@ -103,6 +103,8 @@ function readLocales() {
|
|||
function readConfig() {
|
||||
const publicURL = process.env.UXBOX_PUBLIC_URL;
|
||||
const demoWarn = process.env.UXBOX_DEMO_WARNING;
|
||||
const deployDate = process.env.UXBOX_DEPLOY_DATE;
|
||||
const deployCommit = process.env.UXBOX_DEPLOY_COMMIT;
|
||||
|
||||
let cfg = {
|
||||
demoWarning: demoWarn === "true"
|
||||
|
@ -112,6 +114,14 @@ function readConfig() {
|
|||
cfg.publicURL = publicURL;
|
||||
}
|
||||
|
||||
if (deployDate !== undefined) {
|
||||
cfg.deployDate = deployDate;
|
||||
}
|
||||
|
||||
if (deployCommit !== undefined) {
|
||||
cfg.deployCommit = deployCommit;
|
||||
}
|
||||
|
||||
return JSON.stringify(cfg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue