import { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
    const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "https://turnosxpress.com.ar";
    return {
        rules: {
            userAgent: "*",
            allow: "/",
            disallow: [
                "/admin/",
                "/dashboard/",
                "/my-appointments/",
                "/offer-appointments/",
                "/landing/recover-account/",
            ],
        },
        sitemap: `${baseUrl}/sitemap.xml`,
    };
}
