fixing some problems and getting it ready

This commit is contained in:
2026-05-04 17:43:17 +02:00
parent ecbf909801
commit 4c4c11f574
5 changed files with 47 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
import _config from "../../config.json" with { type: "json" };
import path from "path";
import fs from "fs";
import { fileURLToPath } from "url";
let config = JSON.parse(JSON.stringify(_config));
@@ -14,7 +15,7 @@ if (process.env.NODE_ENV === 'production') {
config.main.development = false;
}
const base = path.resolve();
const base = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../");
const storage = process.env.STORAGE_DIR;
const resolvePath = (defaultRel) => {