feat(seo): 工作区 public/*.html 默认纳入 SEO 收录
Memind CI / Test, build, and release guards (pull_request) Successful in 3m35s

未点公开发布但已落盘到 public/ 的页面,在无在线非 public 发布阻挡时
合成 implicit public snapshot,注入 canonical/JSON-LD 并扫描进 sitemap。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-16 20:49:20 +08:00
parent 422ff8647c
commit 745e9b691d
7 changed files with 301 additions and 37 deletions
@@ -44,7 +44,7 @@ import {
loadMindSpaceConfigCached,
} from '../mindspace-config.mjs';
import {
resolvePublicationIndexSnapshot,
resolveWorkspacePublicationIndexSnapshot,
} from '../mindspace-seo-discovery-service.mjs';
function deliveryNotFoundMessage(reason) {
@@ -71,7 +71,7 @@ export function createPortalWorkspacePublicationDelivery({
resolvePageDataContext =
resolveMindSpacePageDataContext,
getMindSpaceConfig = loadMindSpaceConfigCached,
resolvePublicationSnapshot = resolvePublicationIndexSnapshot,
resolvePublicationSnapshot = resolveWorkspacePublicationIndexSnapshot,
} = {}) {
if (
typeof resolveRequestOrigin !==
@@ -279,6 +279,8 @@ export function createPortalWorkspacePublicationDelivery({
null,
pageId: pageDataContext?.pageId ?? null,
userId: delivery.ownerId ?? null,
workspaceRelativePath: delivery.relativePath ?? null,
publicUrl: context.pageUrl ?? null,
}).catch(() => null);
}
const decorated =