The root layout was stamping the homepage title and production root onto every page. Routes now supply a page segment through one em-dash template, canonicals follow the request path, and non-production hosts disallow crawlers. Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
856 B
TypeScript
32 lines
856 B
TypeScript
/**
|
|
* Figma: "Content page Template" (19003:23305)
|
|
* https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=19003-23305
|
|
*/
|
|
import type { Metadata } from "next";
|
|
import messages from "../../../messages/en/index";
|
|
import { legalPathForSlug } from "../../../lib/legalSyntheticPost";
|
|
import { routeMetadata } from "../../../lib/siteMetadata";
|
|
import LegalDocumentPage, {
|
|
legalPageMetadata,
|
|
} from "../_components/LegalDocumentPage";
|
|
|
|
const SLUG = "cookies" as const;
|
|
const PATH = legalPathForSlug(SLUG);
|
|
|
|
export function generateMetadata(): Metadata {
|
|
return routeMetadata(
|
|
PATH,
|
|
legalPageMetadata(messages.metadata.cookies, messages.pages.cookies),
|
|
);
|
|
}
|
|
|
|
export default function CookiesPage() {
|
|
return (
|
|
<LegalDocumentPage
|
|
slug={SLUG}
|
|
path={PATH}
|
|
page={messages.pages.cookies}
|
|
/>
|
|
);
|
|
}
|