import dotenv from "dotenv";
import app from "./app.js";

dotenv.config();

/** Prefer PORT (many hosts); else APP_PORT. Match Risk_Assessment_Frontend `.env` VITE_DEV_API_PROXY_TARGET. */
const PORT = Number(process.env.PORT || process.env.APP_PORT || 3000);

app.listen(PORT, () => {
  // eslint-disable-next-line no-console
  console.log(`ORAC API listening on port ${PORT}`);
});

