Files
ksan.dev/app/robots.ts
T
2026-08-01 16:07:57 +02:00

17 lines
383 B
TypeScript

import type { MetadataRoute } from "next";
import { SITE_URL } from "@/lib/seo";
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{
userAgent: "*",
allow: "/",
// Don't index bare (non-locale) paths — they redirect
disallow: ["/api/", "/_next/"],
},
],
sitemap: `${SITE_URL}/sitemap.xml`,
};
}