index.ts
434 B · sha256:5256ca092cc521c4528bf8b289a7ff69d600d3cb88685fb5dffcf30b3758d966
import { startConsole } from "./app.tsx";
if ((rune.dashboard?.apiVersion ?? 0) < 2) throw new Error("Rune Dashboard requires Rune 0.5.4 or later.");
const port = Number(process.env.RUNE_DASHBOARD_PORT ?? 8777);
if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error("Set RUNE_DASHBOARD_PORT to a valid TCP port.");
await startConsole(port);
console.info(`Rune Dashboard is listening at http://127.0.0.1:${port}`);