CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 9s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 13s
CI (SIAX Cloud) / security (pull_request) Successful in 20s
security / scan (pull_request) Failing after 43s
CI (SIAX Cloud) / quality (pull_request) Failing after 3m11s
CI (SIAX Cloud) / integration (pull_request) Successful in 3m41s
- sitemap now lists only public landing pages; /bestall* (noindex per PR #622) is no longer announced to crawlers. - /katalog/[id] gets route-level generateMetadata with a unique title, description and canonical per dataset instead of inheriting /katalog's canonical. Unknown ids are explicitly noindex with canonical back to catalog. - Dataset seed extracted to app/katalog/datasets.ts so the client detail page and server metadata share one source of truth. - 10 regression tests covering home/catalog/two datasets/order step and sitemap+robots.
17 lines
570 B
TypeScript
17 lines
570 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
const BASE = "https://0pt.app";
|
|
// /bestall, /bestall/beskriv and /bestall/forskott are deliberately noindex
|
|
// (app/bestall/layout.tsx) — the order flow is transactional, not a landing
|
|
// page. Keep the sitemap in sync with that indexation policy.
|
|
const ROUTES = ["", "/tjanster", "/katalog", "/kallor"];
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
return ROUTES.map((r) => ({
|
|
url: `${BASE}${r}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: "weekly",
|
|
priority: r === "" ? 1 : 0.7,
|
|
}));
|
|
}
|