Skip to content

Commit de3648d

Browse files
committed
fix(docs,marketing): stop blocking /_next/ in robots.txt so Google can fetch render assets
1 parent 011724e commit de3648d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/docs/src/app/robots.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ export default function robots(): MetadataRoute.Robots {
66
rules: [
77
{
88
userAgent: "*",
9+
// No /_next/ block: Google needs build assets (CSS, JS, fonts) to
10+
// render pages, and blocking them triggers Search Console reports.
911
allow: "/",
10-
disallow: ["/api/", "/_next/", "/llms.mdx/", "/llms-full.txt"],
12+
disallow: ["/api/", "/llms.mdx/", "/llms-full.txt"],
1113
},
1214
],
1315
sitemap: `${COMPANY.DOCS_URL}/sitemap.xml`,

apps/marketing/src/app/robots.txt/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ User-Agent: *
2626
Allow: /
2727
Allow: /api/llms.txt
2828
Disallow: /api/
29-
Disallow: /_next/
3029
3130
# AI assistants and AI search crawlers: explicitly welcome
3231
${WELCOME_AI_AGENTS.map((agent) => `User-Agent: ${agent}\nAllow: /`).join("\n\n")}

0 commit comments

Comments
 (0)