From da21694762c83d73cb955a78c32a6ae2a6f7d31f Mon Sep 17 00:00:00 2001 From: Yanbo Wang <76860915+yanboishere@users.noreply.github.com> Date: Thu, 24 Sep 2026 13:41:34 +0800 Subject: [PATCH] fix(seo): add a static fallback entry for /help The help center shipped in #22 without a route in create-spa-fallback.mjs, so a direct hit on memoh.ai/help renders through 404.html with an HTTP 404 status. Add the hub entry (meta mirrors help.ts seoTitle/seoDescription) so the URL that docs and external links point at returns 200. Collection and article deep links keep riding the 404.html fallback, same as blog articles. Co-Authored-By: Claude Fable 5 --- scripts/create-spa-fallback.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/create-spa-fallback.mjs b/scripts/create-spa-fallback.mjs index 2c577a6..294dcd8 100644 --- a/scripts/create-spa-fallback.mjs +++ b/scripts/create-spa-fallback.mjs @@ -38,6 +38,14 @@ const pages = { socialDescription: 'Field notes, architecture writeups, and product updates from the Memoh team.', url: 'https://memoh.ai/blogs', }, + // /help 集合与文章深链仍由 404.html 兜底;这个静态入口保证枢纽路由返回 200, + // 供文档站与外部链接导流。文案与 src/lib/help.ts 的 seoTitle/seoDescription 保持一致。 + help: { + title: 'Memoh Help Center', + description: 'Answers about Memoh: cloud computers for agents, channels, scheduled tasks, plans and billing, desktop apps, privacy and security.', + socialDescription: 'Guides and answers from the Memoh team.', + url: 'https://memoh.ai/help', + }, } // Keep legal documents out of search until the operational details are complete.