Skip to content

The Open Standard for Generative UI

docs: send X-Robots-Tag noindex for /_next/static assets (#1449)

Zahle Khand73e17a1fd32
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index 2e5319f4e..14ef836c9 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -44,6 +44,11 @@ const config = {
},
],
},
+ // Keep build chunks crawlable (Google needs them to render pages) but out of the index.
+ {
+ source: "/_next/static/:path*",
+ headers: [{ key: "X-Robots-Tag", value: "noindex" }],
+ },
];
},
async redirects() {