import { resolve } from "node:path";

import { createApp } from "./app.js";
import { readBrowserSupportRelease } from "./browser-support.js";

const browserSupportRelease = readBrowserSupportRelease(resolve("RELEASE.json"));
const app = await createApp(browserSupportRelease ? { browserSupportRelease } : {});

await app.listen({
  host: "127.0.0.1",
  port: 43121,
});
