2024-04-01 13:13:16 +00:00
|
|
|
const fs = require("fs");
|
2024-03-30 23:09:47 +00:00
|
|
|
const site = require("./global.json");
|
2024-04-01 13:13:16 +00:00
|
|
|
|
|
|
|
site.buildName = process.env.BUILD || 'prod';
|
|
|
|
if (fs.existsSync(`${__dirname}/global.${site.buildName}.json`)) {
|
|
|
|
Object.assign(site, require(`./global.${site.buildName}.json`));
|
|
|
|
}
|
|
|
|
site.buildTime = new Date().toISOString();
|
|
|
|
|
2024-03-30 23:09:47 +00:00
|
|
|
module.exports = site;
|