Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ export default function robots(): MetadataRoute.Robots {
rules: {
userAgent: "*",
allow: "/",
disallow: ["/admin/", "/api/", "/edit/", "/status/", "/unsubscribe/"],
// "/admin" without a trailing slash on purpose: robots.txt matches on
// prefix, so "/admin" covers both the dashboard at /admin and everything
// under it, while "/admin/" would leave app/admin/page.tsx crawlable.
// The others have no bare route, only tokenised children, so the slash
// is right for them.
disallow: ["/admin", "/api/", "/edit/", "/status/", "/unsubscribe/"],
},
sitemap: `${siteUrl}/sitemap.xml`,
};
Expand Down
Loading