Fix to address #229 Base urls. Alot of hacky code here. hope it doesnt break

This commit is contained in:
CyferShepard
2024-09-08 00:31:13 +02:00
parent ed917f5be8
commit 29d6464397
70 changed files with 279 additions and 207 deletions

View File

@@ -2,9 +2,11 @@ const fs = require("fs");
const path = require("path");
async function writeEnvVariables() {
//Define sensitive variables that should not be exposed
const excludedVariables = ["JS_GEOLITE_LICENSE_KEY", "JS_USER", "JS_PASSWORD"];
// Fetch environment variables that start with JS_
const envVariables = Object.keys(process.env).reduce((acc, key) => {
if (key.startsWith("JS_")) {
if (key.startsWith("JS_") && !excludedVariables.includes(key)) {
acc[key] = process.env[key];
}
return acc;