// config/bunny.js
/**
 * Bunny.net CDN Configuration
 */

export const bunnyConfig = {
  // Storage configuration
  storage: {
    zone: import.meta.env.VITE_BUNNY_STORAGE_ZONE,
    host: import.meta.env.VITE_BUNNY_STORAGE_HOST,
    accessKey: import.meta.env.VITE_BUNNY_ACCESS_KEY,
  },
  
  // CDN configuration
  cdn: {
    url: import.meta.env.VITE_BUNNY_CDN_URL || 'https://youngengineers-franchisees.b-cdn.net',
    pullZone: import.meta.env.VITE_BUNNY_STORAGE_ZONE || 'youngengineers-franchisees',
  },

  // Upload settings
  upload: {
    maxFileSize: 50 * 1024 * 1024, // 50MB
    allowedImageTypes: ['image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp'],
    allowedVideoTypes: ['video/mp4', 'video/quicktime', 'video/x-msvideo', 'video/webm'],
    concurrencyLimit: 3, // Max parallel uploads
  },

  // Default folders
  folders: {
    media: 'media/',
    images: 'images/',
    videos: 'videos/',
    thumbnails: 'thumbnails/',
  }
}

export default bunnyConfig
