export const config = {
  db: {
    connectionString: process.env.DATABASE_URL!,
  },

  seap: {
    baseUrl: 'https://e-licitatie.ro/api-pub',
    historicUrl: 'https://istoric.e-licitatie.ro/api-pub',
    referer: 'https://e-licitatie.ro/',
    rateLimit: {
      requestsPerSecond: 2,
      batchSize: 50,
      batchDelayMs: 5000,
    },
    retry: {
      maxRetries: 3,
      baseDelayMs: 2000,
    },
  },

  scraper: {
    // Default: last 6 months for backfill
    backfillMonths: 6,
    // Daily window size for DA pagination (days)
    daWindowDays: 1,
    // Weekly window for notices pagination (days)
    noticeWindowDays: 5,
    // Page size for list requests
    pageSize: 100,
  },
} as const;
