Repository Public
1import type { MetadataRoute } from "next";2import { env } from "@/lib/env";34export default function robots(): MetadataRoute.Robots {5 // A preview build is closed to every crawler.6 if (env.mode !== "production") return { rules: [{ userAgent: "*", disallow: "/" }] };7 return { rules: [{ userAgent: "*", allow: "/", disallow: ["/admin", "/api/", "/apercu", "/telecharger/"] }], sitemap: `${env.publicUrl}/sitemap.xml`, host: env.publicUrl };8}9