From 810b9ae8cb93650b9e43ac93af573f2fc63a3ad5 Mon Sep 17 00:00:00 2001 From: Musiker15 Date: Tue, 24 Nov 2026 01:37:30 +0100 Subject: [PATCH] Add robots.txt to the web app /robots.txt reached the [handle] route and answered 404. robots.txt now allows public forms and guild hubs and blocks /api/, /dashboard, /s/ (the applicant's status page) and /offline. --- apps/web/src/app/robots.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apps/web/src/app/robots.ts diff --git a/apps/web/src/app/robots.ts b/apps/web/src/app/robots.ts new file mode 100644 index 0000000..f07240e --- /dev/null +++ b/apps/web/src/app/robots.ts @@ -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"] }], + }; +}