diff --git a/src/app/robots.ts b/src/app/robots.ts index 20214ef..eed312b 100644 --- a/src/app/robots.ts +++ b/src/app/robots.ts @@ -1,14 +1,20 @@ 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: "https://www.wilddragon.net/sitemap.xml", - host: "https://www.wilddragon.net", + sitemap: `${SITE_URL}/sitemap.xml`, + host: SITE_URL, }; }