export const API_BASE = import.meta.env.VITE_API_BASE_URL || '/api/v1'

export function getFileUrl(path: string): string {
  if (!path) return ''
  if (path.startsWith('http')) return path
  const base = import.meta.env.VITE_API_BASE || ''
  return `${base}${path}`
}
