Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/site/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
disallow: ["/api/", "/account", "/orders", "/library", "/checkout/", "/claim/"],
},
sitemap: "https://nightcell7.com/sitemap.xml",
};
}
40 changes: 40 additions & 0 deletions apps/site/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import type { MetadataRoute } from "next";

const ORIGIN = "https://nightcell7.com";

/**
* Public, indexable pages only. Account, checkout, claim and password pages
* are per-visitor and stay out; /characters/[side] lists the two dossiers.
*/
const PATHS = [
"/",
"/episodes/false-dawn",
"/multiplayer",
"/downloads",
"/system-requirements",
"/yards",
"/gallery",
"/characters",
"/characters/rook",
"/characters/leila",
"/news",
"/faq",
"/support",
"/status",
"/press",
"/careers",
"/credits",
"/privacy",
"/terms",
"/refunds",
"/licenses",
"/community-guidelines",
];

export default function sitemap(): MetadataRoute.Sitemap {
return PATHS.map((path) => ({
url: `${ORIGIN}${path}`,
changeFrequency: path === "/" || path === "/news" ? "weekly" : "monthly",
priority: path === "/" ? 1 : path === "/episodes/false-dawn" ? 0.9 : 0.5,
}));
}
Loading