import { bootstrap } from "./bootstrap";
import { readRuntimeConfig } from "./config";

async function main() {
  const { configPath } = readRuntimeConfig();
  await bootstrap({ configPath, mode: "development" });
}

void main().catch((error) => {
  console.error("启动失败:", error instanceof Error ? error.message : error);
  process.exit(1);
});
