0
Fork 0
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:
Andrey Antukh 2020-03-12 12:52:37 +01:00
parent d506c9b562
commit 7430a9b332

View file

@ -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);
}