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

dotenv.config();

/** Prefer PORT (many hosts); else APP_PORT. Default 3005 to avoid clashing with ORAC (3000). */
const PORT = Number(process.env.PORT || process.env.APP_PORT || 3005);

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