SEO hardening: canonicals, sitemap x-default, legal dates (#1741)
- Add canonical tags to community, nightly, wall-of-love, and all legal pages (prevents duplicate content with trailing slashes) - Add x-default hreflang to sitemap for all entries - Add legal pages (privacy-policy, terms-of-service, eula) to sitemap - Stabilize sitemap lastModified to fixed dates instead of new Date() (avoids noisy lastmod changes on every deploy) - Update legal page dates to March 18, 2026 (domain migration is a material change to the "Site" definition) - Update copyright year to 2026 Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
This commit is contained in:
parent
cb4197ecee
commit
d33e1d1cf9
7 changed files with 27 additions and 17 deletions
|
|
@ -3,13 +3,14 @@ import type { Metadata } from "next";
|
|||
export const metadata: Metadata = {
|
||||
title: "EULA — cmux",
|
||||
description: "End-User License Agreement for cmux",
|
||||
alternates: { canonical: "./" },
|
||||
};
|
||||
|
||||
export default function EulaPage() {
|
||||
return (
|
||||
<>
|
||||
<h1>EULA</h1>
|
||||
<p>Last updated: December 2, 2025</p>
|
||||
<p>Last updated: March 18, 2026</p>
|
||||
|
||||
<p>
|
||||
Please read this End-User License Agreement carefully before
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@ import { Link } from "../../../../i18n/navigation";
|
|||
export const metadata: Metadata = {
|
||||
title: "Privacy Policy — cmux",
|
||||
description: "Privacy policy for cmux",
|
||||
alternates: { canonical: "./" },
|
||||
};
|
||||
|
||||
export default function PrivacyPolicyPage() {
|
||||
return (
|
||||
<>
|
||||
<h1>Privacy Policy</h1>
|
||||
<p>Last updated: December 2, 2025</p>
|
||||
<p>Last updated: March 18, 2026</p>
|
||||
|
||||
<p>
|
||||
Manaflow (the “Company”) is committed to maintaining robust
|
||||
|
|
|
|||
|
|
@ -3,13 +3,14 @@ import type { Metadata } from "next";
|
|||
export const metadata: Metadata = {
|
||||
title: "Terms of Service — cmux",
|
||||
description: "Terms of service for cmux",
|
||||
alternates: { canonical: "./" },
|
||||
};
|
||||
|
||||
export default function TermsOfServicePage() {
|
||||
return (
|
||||
<>
|
||||
<h1>Terms of Service</h1>
|
||||
<p>Last revised on: December 2, 2025</p>
|
||||
<p>Last revised on: March 18, 2026</p>
|
||||
|
||||
<p>
|
||||
The website located at{" "}
|
||||
|
|
@ -180,7 +181,7 @@ export default function TermsOfServicePage() {
|
|||
</p>
|
||||
|
||||
<p>
|
||||
Copyright © 2025 Manaflow. All rights reserved.
|
||||
Copyright © 2026 Manaflow. All rights reserved.
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
|
|||
return {
|
||||
title: t("metaTitle"),
|
||||
description: t("metaDescription"),
|
||||
alternates: { canonical: "./" },
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ export async function generateMetadata({
|
|||
return {
|
||||
title: t("metaTitle"),
|
||||
description: t("metaDescription"),
|
||||
alternates: { canonical: "./" },
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
|
|||
return {
|
||||
title: t("metaTitle"),
|
||||
description: t("metaDescription"),
|
||||
alternates: { canonical: "./" },
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,23 +5,26 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
|||
const base = "https://cmux.com";
|
||||
|
||||
const paths = [
|
||||
{ path: "", lastModified: new Date(), changeFrequency: "weekly" as const, priority: 1 },
|
||||
{ path: "/blog", lastModified: new Date(), changeFrequency: "weekly" as const, priority: 0.8 },
|
||||
{ path: "", lastModified: "2026-03-18", changeFrequency: "weekly" as const, priority: 1 },
|
||||
{ path: "/blog", lastModified: "2026-03-18", changeFrequency: "weekly" as const, priority: 0.8 },
|
||||
{ path: "/blog/show-hn-launch", lastModified: "2026-02-21", changeFrequency: "monthly" as const, priority: 0.7 },
|
||||
{ path: "/blog/introducing-cmux", lastModified: "2026-02-12", changeFrequency: "monthly" as const, priority: 0.7 },
|
||||
{ path: "/blog/zen-of-cmux", lastModified: "2026-02-27", changeFrequency: "monthly" as const, priority: 0.7 },
|
||||
{ path: "/blog/cmd-shift-u", lastModified: "2026-03-04", changeFrequency: "monthly" as const, priority: 0.7 },
|
||||
{ path: "/docs/getting-started", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.9 },
|
||||
{ path: "/docs/concepts", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/configuration", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/keyboard-shortcuts", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.7 },
|
||||
{ path: "/docs/api", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/notifications", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/changelog", lastModified: new Date(), changeFrequency: "weekly" as const, priority: 0.5 },
|
||||
{ path: "/docs/browser-automation", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/community", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.5 },
|
||||
{ path: "/wall-of-love", lastModified: new Date(), changeFrequency: "monthly" as const, priority: 0.5 },
|
||||
{ path: "/nightly", lastModified: new Date(), changeFrequency: "weekly" as const, priority: 0.6 },
|
||||
{ path: "/docs/getting-started", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.9 },
|
||||
{ path: "/docs/concepts", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/configuration", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/keyboard-shortcuts", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.7 },
|
||||
{ path: "/docs/api", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/notifications", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/docs/changelog", lastModified: "2026-03-18", changeFrequency: "weekly" as const, priority: 0.5 },
|
||||
{ path: "/docs/browser-automation", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.8 },
|
||||
{ path: "/community", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.5 },
|
||||
{ path: "/wall-of-love", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.5 },
|
||||
{ path: "/nightly", lastModified: "2026-03-18", changeFrequency: "weekly" as const, priority: 0.6 },
|
||||
{ path: "/privacy-policy", lastModified: "2026-03-18", changeFrequency: "yearly" as const, priority: 0.3 },
|
||||
{ path: "/terms-of-service", lastModified: "2026-03-18", changeFrequency: "yearly" as const, priority: 0.3 },
|
||||
{ path: "/eula", lastModified: "2026-03-18", changeFrequency: "yearly" as const, priority: 0.3 },
|
||||
];
|
||||
|
||||
const entries: MetadataRoute.Sitemap = [];
|
||||
|
|
@ -32,6 +35,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
|||
alternates[locale] =
|
||||
locale === "en" ? `${base}${path}` : `${base}/${locale}${path}`;
|
||||
}
|
||||
alternates["x-default"] = `${base}${path}`;
|
||||
|
||||
entries.push({
|
||||
url: `${base}${path}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue