fix issue with input randomly breaking

This commit is contained in:
Dax Raad
2025-11-06 19:48:10 -05:00
parent d1962ca5a7
commit b25d4f9dfb
2 changed files with 3 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import { Server } from "@/server/server"
import { Log } from "@/util/log"
import { Instance } from "@/project/instance"
import { Rpc } from "@/util/rpc"
import { upgrade } from "@/cli/upgrade"
await Log.init({
print: process.argv.includes("--print-logs"),
@@ -25,6 +26,8 @@ process.on("uncaughtException", (e) => {
})
})
upgrade()
let server: Bun.Server<undefined>
export const rpc = {
async server(input: { port: number; hostname: string }) {