feat(seo): robots.txt + sitemap.xml — crawler-kontraktet saknades helt (404 mätt live)
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
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
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
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
|
||||
// Publik marknadsföringssajt: crawler-vänlig men utan auth-ytor.
|
||||
// /portal, /admin och /order/* är inloggnings-ytor — ej indexerbara.
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
rules: [{ userAgent: "*", allow: "/", disallow: ["/portal/", "/admin/", "/order/", "/api/"] }],
|
||||
sitemap: "https://0pt.app/sitemap.xml",
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
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,
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user