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
+4 -10
View File
@@ -1,20 +1,14 @@
import { Command } from "commander";
import grabConfig from "../../functions/grab-config";
import startServer from "../../functions/server/start-server";
import init from "../../functions/init";
import { log } from "../../utils/log";
import bunextInit from "../../functions/bunext-init";
export default function () {
return new Command("dev")
.description("Run development server")
.action(async () => {
log.banner();
process.env.NODE_ENV == "development";
log.info("Running development server ...");
await init();
const config = (await grabConfig()) || {};
global.CONFIG = {
...config,
development: true,
};
await startServer({ dev: true });
await bunextInit();
await startServer();
});
}