import { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
  const baseUrl = process.env.NEXT_PUBLIC_APP_URL || "https://iddaai.com";
  return {
    rules: {
      userAgent: "*",
      allow: "/",
      disallow: ["/admin", "/*/dashboard", "/*/profile", "/*/coupon-history"],
    },
    sitemap: `${baseUrl}/sitemap.xml`,
  };
}
