Skip to content

Commit 4b3a8b7

Browse files
techgangbossclaude
andcommitted
fix: allow /api/og/ in robots.txt so Twitter can fetch OG images
robots.txt was blocking all /api/ paths. Twitter's crawler warned the image URL may be restricted. Added explicit allow for /api/og/ which takes precedence over the broader /api/ disallow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b655459 commit 4b3a8b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/robots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function robots(): MetadataRoute.Robots {
88
rules: [
99
{
1010
userAgent: "*",
11-
allow: "/",
11+
allow: ["/", "/api/og/"],
1212
disallow: ["/api/", "/_next/"],
1313
},
1414
],

0 commit comments

Comments
 (0)