added dev build and root index symlink
This commit is contained in:
parent
3c4944bacb
commit
a915cee61c
10 changed files with 41 additions and 14 deletions
4
src/_data/global.dev.json
Normal file
4
src/_data/global.dev.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"title": "DEV sp-codes",
|
||||
"url": "https://dev.sp-codes.de"
|
||||
}
|
|
@ -1,3 +1,10 @@
|
|||
const fs = require("fs");
|
||||
const site = require("./global.json");
|
||||
site.buildTime = new Date();
|
||||
|
||||
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();
|
||||
|
||||
module.exports = site;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue