From a0863a3e202317d6c0a53fbba75a1a49445e357e Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Mon, 4 May 2026 00:01:40 -0400 Subject: [PATCH] SEO: robots on apex hostname, do not block JS or static assets needed for rendering --- src/app/robots.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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, }; }