import type { MetadataRoute } from "next";

const routes = [
  "",
  "/menu",
  "/delivery",
  "/cart",
  "/checkout",
  "/booking",
  "/legend",
  "/bar",
  "/gallery",
  "/events",
  "/contacts",
  "/club",
  "/privacy",
  "/personal-data-consent",
  "/cookies",
  "/offer",
  "/delivery-payment",
];

export default function sitemap(): MetadataRoute.Sitemap {
  const host = process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000";
  return routes.map((route) => ({
    url: `${host}${route}`,
    lastModified: new Date()
  }));
}
