// cremation-permit-system — 起動エントリ（共通core + 固有system）
import { fileURLToPath } from "node:url";
import { createServer } from "./server-core.mjs";
import * as system from "./system.mjs";

const root = fileURLToPath(new URL("../..", import.meta.url));
const server = await createServer({ root, handle: system.handle });
const port = Number(process.env.PORT ?? 4173);
server.listen(port, () => console.log(`cremation-permit-system (suite) listening on http://localhost:${port}`));
