Add features: custom server and websocket. Minor refactoring

This commit is contained in:
2026-03-21 07:42:38 +01:00
parent 1611c845b9
commit 98d3cf7da7
29 changed files with 321 additions and 286 deletions
+7 -1
View File
@@ -1,7 +1,8 @@
import { existsSync, mkdirSync, statSync, writeFileSync } from "fs";
import { existsSync, mkdirSync, writeFileSync } from "fs";
import grabDirNames from "../utils/grab-dir-names";
import { execSync } from "child_process";
import path from "path";
import grabConfig from "./grab-config";
export default async function () {
const dirNames = grabDirNames();
execSync(`rm -rf ${dirNames.BUNEXT_CACHE_DIR}`);
@@ -26,4 +27,9 @@ export default async function () {
writeFileSync(dir, basicConfig);
}
}
const config = (await grabConfig()) || {};
global.CONFIG = {
...config,
development: true,
};
}