Skip to content

Commit 17ee4df

Browse files
committed
Limit SSH blog routes to authored locales
1 parent 48210f8 commit 17ee4df

5 files changed

Lines changed: 21 additions & 5 deletions

File tree

web/app/[locale]/(landing)/blog/cmux-ssh/page.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
import { getTranslations } from "next-intl/server";
2-
import { hasFeatureWorkflowContent } from "@/i18n/locale-availability";
2+
import {
3+
fallbackContentLocales,
4+
hasFeatureWorkflowContent,
5+
} from "@/i18n/locale-availability";
36
import { buildAlternates, openGraphDefaults, seoDescription, twitterSummary } from "@/i18n/seo";
47
import { BlogSchema } from "../blog-schema";
58
import { Link } from "@/i18n/navigation";
69

710
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
811
const { locale } = await params;
912
const t = await getTranslations({ locale, namespace: "blog.cmuxSsh" });
10-
const alternates = buildAlternates(locale, "/blog/cmux-ssh");
13+
const alternates = buildAlternates(
14+
locale,
15+
"/blog/cmux-ssh",
16+
fallbackContentLocales,
17+
);
1118
const title = t("metaTitle");
1219
const description = seoDescription(locale, t("metaDescription"));
1320
return {

web/app/[locale]/components/blog-posts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { englishFallbackContentLocales } from "@/i18n/locale-availability";
1+
import {
2+
englishFallbackContentLocales,
3+
fallbackContentLocales,
4+
} from "@/i18n/locale-availability";
25

36
type BlogPost = {
47
slug: string;
@@ -97,6 +100,7 @@ export const blogPosts = [
97100
date: "2026-03-30",
98101
summary:
99102
"One command gives you persistent remote sessions, browser panes that reach remote ports, and agent notifications that come home.",
103+
locales: fallbackContentLocales,
100104
},
101105
{
102106
slug: "cmux-claude-teams",

web/app/lib/agent-page-paths.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ export const agentReadablePages = [
127127
{ path: "/blog/markdown-viewer", title: "A better markdown viewer in cmux" },
128128
{ path: "/blog/unread-shortcuts", title: "Unread workspace shortcuts in cmux" },
129129
{ path: "/blog/session-restore", title: "Session restore in cmux" },
130-
{ path: "/blog/cmux-ssh", title: "cmux SSH" },
130+
{
131+
path: "/blog/cmux-ssh",
132+
title: "cmux SSH",
133+
locales: fallbackContentLocales,
134+
},
131135
{
132136
path: "/blog/cmux-claude-teams",
133137
title: "Claude Code teammate agents as native cmux panes",

web/app/sitemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
3838
{ path: "/blog/zen-of-cmux", lastModified: "2026-02-27", changeFrequency: "monthly" as const, priority: 0.7 },
3939
{ path: "/blog/cmux-claude-teams", lastModified: "2026-03-30", changeFrequency: "monthly" as const, priority: 0.7, locales: englishFallbackContentLocales },
4040
{ path: "/blog/cmux-omo", lastModified: "2026-03-30", changeFrequency: "monthly" as const, priority: 0.7, locales: englishFallbackContentLocales },
41-
{ path: "/blog/cmux-ssh", lastModified: "2026-07-03", changeFrequency: "monthly" as const, priority: 0.7 },
41+
{ path: "/blog/cmux-ssh", lastModified: "2026-07-03", changeFrequency: "monthly" as const, priority: 0.7, locales: fallbackContentLocales },
4242
{ path: "/blog/gpl", lastModified: "2026-03-30", changeFrequency: "monthly" as const, priority: 0.7, locales: englishFallbackContentLocales },
4343
{ path: "/blog/cmd-shift-u", lastModified: "2026-03-04", changeFrequency: "monthly" as const, priority: 0.7 },
4444
{ path: "/docs/getting-started", lastModified: "2026-03-18", changeFrequency: "monthly" as const, priority: 0.9 },

web/i18n/locale-availability.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const fallbackContentRoutes = [
3131
path: "/docs/agent-integrations/oh-my-pi",
3232
locales: fallbackContentLocales,
3333
},
34+
{ path: "/blog/cmux-ssh", locales: fallbackContentLocales },
3435
{
3536
path: "/blog/cmux-claude-teams",
3637
locales: englishFallbackContentLocales,

0 commit comments

Comments
 (0)