added dev build and root index symlink
All checks were successful
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Successful in 39s
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s

This commit is contained in:
Samuel Philipp 2024-04-01 15:13:16 +02:00
parent 3c4944bacb
commit a915cee61c
10 changed files with 41 additions and 14 deletions

View file

@ -0,0 +1,4 @@
{
"title": "DEV sp-codes",
"url": "https://dev.sp-codes.de"
}

View file

@ -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;