import { getAppConfig } from '@/lib/config'; /** A media address of the host (/media/...) as the browser must request it from the admin. */ export const mediaUrl = (path: string): string => `${getAppConfig().apiBaseUrl.replace(/\/$/, '')}${path}`;