import { config } from "dotenv";
import { join } from "path";

config({ path: join(__dirname, "..", "..", "..", ".env") });

export const cfg = {
  port: parseInt(process.env.API_PORT || "3200"),
  nodeEnv: process.env.NODE_ENV || "development",
  db: {
    host: process.env.POSTGRES_HOST || "localhost",
    port: parseInt(process.env.POSTGRES_PORT || "5432"),
    database: process.env.POSTGRES_DB || "transceiver_db",
    user: process.env.POSTGRES_USER || "tip",
    password: process.env.POSTGRES_PASSWORD || "tip_dev_2026",
  },
  qdrant: {
    host: process.env.QDRANT_HOST || "localhost",
    port: parseInt(process.env.QDRANT_PORT || "6333"),
  },
} as const;
