diff --git a/frontend/gulpfile.js b/frontend/gulpfile.js index a932d86ce..11d0d6955 100644 --- a/frontend/gulpfile.js +++ b/frontend/gulpfile.js @@ -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); }