/**
 * URL constants used throughout the application
 */

// Site URLs
export const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://schedule.itlxrd.space'
export const SITEMAP_SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://schedule.itlxrd.space'

// External service URLs
export const PROXY_URL = process.env.PROXY_URL || 'https://lk.ks.psuti.ru'
export const KS_PSUTI_IMAGES_BASE_URL = 'https://ks.psuti.ru/images'

// Social media and external links
export const GITHUB_REPO_URL = 'https://github.com/kilyabin/kspguti-schedule'
export const TELEGRAM_CONTACT_URL = 'https://t.me/ilyakm'

// Teacher photos base URL
export const TEACHER_PHOTOS_BASE_URL = `${KS_PSUTI_IMAGES_BASE_URL}/stories`

// Schedule mode: controls how groups and schedules are obtained
export type SchedMode = 'hobby' | 'kspsuti'

const rawSchedMode = process.env.SCHED_MODE?.toLowerCase()

export const SCHED_MODE: SchedMode = rawSchedMode === 'kspsuti' ? 'kspsuti' : 'hobby'

