mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -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() {
|
function readConfig() {
|
||||||
const publicURL = process.env.UXBOX_PUBLIC_URL;
|
const publicURL = process.env.UXBOX_PUBLIC_URL;
|
||||||
const demoWarn = process.env.UXBOX_DEMO_WARNING;
|
const demoWarn = process.env.UXBOX_DEMO_WARNING;
|
||||||
|
const deployDate = process.env.UXBOX_DEPLOY_DATE;
|
||||||
|
const deployCommit = process.env.UXBOX_DEPLOY_COMMIT;
|
||||||
|
|
||||||
let cfg = {
|
let cfg = {
|
||||||
demoWarning: demoWarn === "true"
|
demoWarning: demoWarn === "true"
|
||||||
|
@ -112,6 +114,14 @@ function readConfig() {
|
||||||
cfg.publicURL = publicURL;
|
cfg.publicURL = publicURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (deployDate !== undefined) {
|
||||||
|
cfg.deployDate = deployDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (deployCommit !== undefined) {
|
||||||
|
cfg.deployCommit = deployCommit;
|
||||||
|
}
|
||||||
|
|
||||||
return JSON.stringify(cfg);
|
return JSON.stringify(cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue