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
+2 -10
View File
@@ -1,21 +1,13 @@
import { Command } from "commander";
import grabConfig from "../../functions/grab-config";
import init from "../../functions/init";
import allPagesBundler from "../../functions/bundler/all-pages-bundler";
import { log } from "../../utils/log";
export default function () {
return new Command("build")
.description("Build Project")
.action(async () => {
log.banner();
log.build("Building Project ...");
process.env.NODE_ENV = "production";
await init();
const config = (await grabConfig()) || {};
global.CONFIG = {
...config,
development: true,
};
process.env.BUILD = "true";
log.build("Building Project ...");
allPagesBundler({
exit_after_first_build: true,
});