bunext/dist/commands/start/index.js
2026-03-18 17:37:24 +01:00

16 lines
532 B
JavaScript

import { Command } from "commander";
import grabConfig from "../../functions/grab-config";
import startServer from "../../functions/server/start-server";
import init from "../../functions/init";
export default function () {
return new Command("start")
.description("Start production server")
.action(async () => {
console.log(`Starting production server ...`);
await init();
const config = await grabConfig();
global.CONFIG = { ...config };
await startServer();
});
}