synclounge/config/prod.env.js

18 lines
456 B
JavaScript
Raw Normal View History

2019-04-20 08:03:44 +00:00
const git = require('git-rev-sync');
2018-08-19 03:31:52 +00:00
2019-04-20 08:03:44 +00:00
const settings = new (require('../SettingsHelper'))();
2018-08-19 03:31:52 +00:00
2019-04-20 08:03:44 +00:00
console.log('Production settings', settings);
2019-04-20 08:26:08 +00:00
if (process.env.API_OVERRIDE) {
console.log('Building with API_OVERRIDE', process.env.API_OVERRIDE);
}
2018-08-19 03:31:52 +00:00
module.exports = {
NODE_ENV: '"production"',
2019-04-20 08:03:44 +00:00
gitHash: `"${git.short()}"`,
gitDate: `"${git.date()}"`,
2018-08-19 03:31:52 +00:00
2019-04-20 08:03:44 +00:00
webroot: `"${settings.webroot}"`,
API_OVERRIDE: `"${process.env.API_OVERRIDE}"` || undefined,
};