wilddragon-site/src/app/robots.ts

21 lines
567 B
TypeScript
Raw Normal View History

import { MetadataRoute } from "next";
const SITE_URL = "https://wilddragon.net";
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{
userAgent: "*",
allow: "/",
// Block any internal Next.js bookkeeping that shouldn't be indexed.
// Do NOT block /_next/static or /_next/image — Googlebot needs them
// to render the page when verifying mobile usability and Core Web Vitals.
disallow: ["/api/"],
},
],
sitemap: `${SITE_URL}/sitemap.xml`,
host: SITE_URL,
};
}