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
13 changes: 13 additions & 0 deletions apps/web/src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { MetadataRoute } from "next";

/**
* robots.txt. Without this file `/robots.txt` reached the `[handle]` route
* and answered 404. Public forms and guild hubs stay crawlable. Blocked are
* the API, the dashboard behind the login, and `/s/`, the applicant's status
* page with their own answers and data.
*/
export default function robots(): MetadataRoute.Robots {
return {
rules: [{ userAgent: "*", allow: "/", disallow: ["/api/", "/dashboard", "/s/", "/offline"] }],
};
}