Files
admin 21d51194b7
CI (SIAX Cloud) / integration (push) Has been skipped
masterplan-lock / check (push) Successful in 5s
masterplan-lock / check (pull_request) Successful in 5s
CI (SIAX Cloud) / security (push) Successful in 13s
Security Scan (SIAX Cloud) / security (push) Successful in 14s
CI (SIAX Cloud) / security (pull_request) Successful in 14s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 15s
CI (SIAX Cloud) / quality (push) Successful in 53s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m1s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m10s
feat(seo): robots.txt + sitemap.xml — crawler-kontraktet saknades helt (404 mätt live)
Publik marknadsföringssajt utan robots/sitemap = crawlers rattningslös.
- robots.ts: allow /, disallow portal/admin/order/api (inloggnings-ytor)
- sitemap.ts: 7 publika ytor, weekly
2026-09-22 09:57:15 +02:00

14 lines
404 B
TypeScript

import type { MetadataRoute } from "next";
const BASE = "https://0pt.app";
const ROUTES = ["", "/tjanster", "/katalog", "/kallor", "/bestall", "/bestall/beskriv", "/bestall/forskott"];
export default function sitemap(): MetadataRoute.Sitemap {
return ROUTES.map((r) => ({
url: `${BASE}${r}`,
lastModified: new Date(),
changeFrequency: "weekly",
priority: r === "" ? 1 : 0.7,
}));
}