import dotenv from "dotenv";

dotenv.config();

export const env = {
  nodeEnv: process.env.NODE_ENV || "development",
  port: process.env.PORT || 5000,
  mysqlDatabaseUrl: process.env.MYSQL_DATABASE_URL || "",
  mysqlHost: process.env.MYSQL_HOST || "localhost",
  mysqlPort: process.env.MYSQL_PORT || "3306",
  mysqlUser: process.env.MYSQL_USER || "root",
  mysqlPassword: process.env.MYSQL_PASSWORD || "",
  mysqlDatabase: process.env.MYSQL_DATABASE || "omosala_marketplace",
  frontendUrl: process.env.FRONTEND_URL || "http://localhost:3000",
  jwtSecret: process.env.JWT_SECRET || "dev-secret-change-me",
  jwtRefreshSecret: process.env.JWT_REFRESH_SECRET || "dev-refresh-secret-change-me",
  paystackSecret: process.env.PAYSTACK_SECRET_KEY || "",
  flutterwaveSecret: process.env.FLUTTERWAVE_SECRET_KEY || "",
  stripeSecret: process.env.STRIPE_SECRET_KEY || "",
  whatsappAccessToken: process.env.WHATSAPP_ACCESS_TOKEN || "",
  whatsappPhoneNumberId: process.env.WHATSAPP_PHONE_NUMBER_ID || "",
  whatsappBusinessNumber: process.env.WHATSAPP_BUSINESS_NUMBER || "08030572418"
};
