Files
threadcount-community/app/robots.ts
T
ThreadCount 1bc2de655a ThreadCount Community edition
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
2026-09-13 08:45:19 +10:00

17 lines
855 B
TypeScript

import type { MetadataRoute } from "next";
const SITE = process.env.NEXT_PUBLIC_SITE_URL || "https://threadcount.tech";
// The marketing pages are meant to be found; everything behind a login is not.
export default function robots(): MetadataRoute.Robots {
return {
// /m is the phone app. Its pages already carry robots: noindex, but a crawler has to fetch a
// page to read that — and every one of them is dynamic and behind a session. Disallowing the
// prefix keeps crawl budget on the pages that are meant to rank.
// /my is the staff self-service view. Nothing there is public and its sign-in page is reached
// from a printed slip, not from search.
rules: [{ userAgent: "*", allow: "/", disallow: ["/app", "/app/", "/api/", "/print", "/auth", "/m", "/m/", "/my", "/my/"] }],
sitemap: `${SITE}/sitemap.xml`,
};
}