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