Files
threadcount-community/app/sitemap.ts
T
ThreadCount 344b1701dd ThreadCount Community edition
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
2026-09-13 08:54:35 +10:00

38 lines
1.3 KiB
TypeScript

import type { MetadataRoute } from "next";
const SITE = process.env.NEXT_PUBLIC_SITE_URL || "https://threadcount.tech";
export default function sitemap(): MetadataRoute.Sitemap {
const now = new Date();
const page = (path: string, priority: number, changeFrequency: "monthly" | "yearly" = "monthly") =>
({ url: `${SITE}${path}`, lastModified: now, changeFrequency, priority });
return [
page("", 1),
page("/features", 0.9),
page("/how-it-works", 0.9),
page("/reporting", 0.8),
page("/pricing", 0.8),
page("/demo", 0.8),
// The guides answer the problem rather than describe the product, so they are the most
// likely entry point from a search and are weighted accordingly.
page("/guides", 0.8),
page("/guides/uniform-stocktake", 0.8),
page("/guides/uniform-loss", 0.8),
page("/guides/cost-centre-reporting", 0.7),
page("/guides/manager-approvals", 0.7),
page("/getting-started", 0.7),
page("/security", 0.7),
page("/faq", 0.7),
page("/support", 0.6),
page("/roadmap", 0.6),
page("/about", 0.6),
page("/contact", 0.6),
page("/delete-account", 0.4, "yearly"),
page("/privacy", 0.3, "yearly"),
page("/terms", 0.3, "yearly"),
page("/data-security", 0.3, "yearly"),
page("/acceptable-use", 0.3, "yearly"),
page("/legal-about", 0.3, "yearly"),
];
}