const API_ORIGIN = process.env.NEXT_PUBLIC_API_ORIGIN ?? "";

/** Construit l'URL complète d'un fichier uploadé côté backend (ex: imageUrl d'un produit). */
export function urlAsset(chemin: string): string {
  return `${API_ORIGIN}${chemin}`;
}
