import 'dotenv/config';

export const env = {
  PORT: parseInt(process.env['PORT'] || '3000', 10),
  DATABASE_URL: process.env['DATABASE_URL'] || 'postgresql://marketplace:marketplace_dev@localhost:5432/marketplace',
  JWT_SECRET: process.env['JWT_SECRET'] || 'dev-secret-change-in-production',
  JWT_REFRESH_SECRET: process.env['JWT_REFRESH_SECRET'] || 'dev-refresh-secret-change-in-production',
  STRIPE_SECRET_KEY: process.env['STRIPE_SECRET_KEY'] || '',
  STRIPE_PUBLISHABLE_KEY: process.env['STRIPE_PUBLISHABLE_KEY'] || '',
  STRIPE_WEBHOOK_SECRET: process.env['STRIPE_WEBHOOK_SECRET'] || '',
  CLIENT_URL: process.env['CLIENT_URL'] || 'http://localhost:5173',
  UPLOAD_DIR: process.env['UPLOAD_DIR'] || './uploads',
  GOOGLE_MAPS_API_KEY: process.env['GOOGLE_MAPS_API_KEY'] || 'AIzaSyDW0G7wkKlYbsrzMZRrz0UI4gk-L8WCMh0',
};
