Skip to content

Commit b0046b6

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

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/docs/src/app/robots.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export default function robots(): MetadataRoute.Robots {
66
rules: [
77
{
88
userAgent: "*",
9-
allow: "/",
9+
// Google needs /_next/static/ (CSS, JS, fonts) to render pages;
10+
// blocking it triggers "Blocked by robots.txt" reports in Search Console.
11+
allow: ["/", "/_next/static/"],
1012
disallow: ["/api/", "/_next/", "/llms.mdx/", "/llms-full.txt"],
1113
},
1214
],

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function GET() {
2525
User-Agent: *
2626
Allow: /
2727
Allow: /api/llms.txt
28+
Allow: /_next/static/
2829
Disallow: /api/
2930
Disallow: /_next/
3031

0 commit comments

Comments
 (0)