From 27335e35eae9c462a1bbf4dd969d38f8ec907cfd Mon Sep 17 00:00:00 2001 From: ResourceMint <268529574+ResourceMint@users.noreply.github.com> Date: Thu, 6 Aug 2026 10:53:58 +0530 Subject: [PATCH] feat: add robots.ts sitemap.ts already existed; this adds the missing robots route. Allows crawling, points at the sitemap, and keeps /auth, /login and the PWA /offline fallback out of the index. Closes #119 --- src/app/robots.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/app/robots.ts diff --git a/src/app/robots.ts b/src/app/robots.ts new file mode 100644 index 0000000..c5ca01b --- /dev/null +++ b/src/app/robots.ts @@ -0,0 +1,14 @@ +import type { MetadataRoute } from "next"; + +import { site } from "@/lib/site"; + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: "*", + allow: "/", + disallow: ["/auth/", "/login", "/offline"], + }, + sitemap: `${site.url}/sitemap.xml`, + }; +}