const WEB_BASE_URL = (process.env.EXPO_PUBLIC_WEB_URL || "https://menul.io").replace(/\/+$/, "");

export function getPublicMenuUrl(slug: string): string {
  return `${WEB_BASE_URL}/menu/${slug}`;
}

export function getPublicMenuDisplayUrl(slug: string): string {
  const displayBase = WEB_BASE_URL.replace(/^https?:\/\//, "");
  return `${displayBase}/menu/${slug}`;
}

