Files
buzz-sheet/app/robots.ts
T
gunshiz 801386a8ed
CI / Verify application and manifests (push) Successful in 1m27s
CI / Build immutable images and deploy (push) Failing after 5m58s
feat : overwite buzz.sudloh.com/guide
2026-09-17 21:55:16 +07:00

18 lines
417 B
TypeScript

import type { MetadataRoute } from "next";
import { siteUrl } from "@/lib/site-url";
export default function robots(): MetadataRoute.Robots {
if (process.env.PUBLIC_MIRROR === "true") {
return { rules: { userAgent: "*", disallow: "/" } };
}
return {
rules: {
userAgent: "*",
allow: "/",
disallow: ["/admin", "/api", "/register"],
},
sitemap: `${siteUrl}/sitemap.xml`,
};
}