feat(seo): 工作区 public/*.html 默认纳入 SEO 收录
Memind CI / Test, build, and release guards (pull_request) Successful in 3m35s
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user