SEO/GEO/GSC: sitemap index + caching, Search & AI settings, getRobots
- Sitemap: batched reads (500), published-only where, field select; sitemap index over maxUrls (default 10k) with ?part=N; Cache-Control; in-process memo; runtime errors → 503 Retry-After (empty urlset only during next build) - Site Settings → Search & AI tab (seo.searchSettings: false removes it): Google/Bing/Yandex verification (paste code or whole meta tag) added to page metadata; AI crawler policy + per-bot exceptions; llms.txt note - buildRobots aiBotRules; getRobots helper reads the panel; more AI agents - Under construction: sitemap and llms.txt list only open pages - collectSiteIndex: no silent 1000 cap; llms routes send Cache-Control - IndexNow: nothing sent with IPAL_NOINDEX - Unknown route metadata is noindex - Tests (unit + SQLite integration) and docs/seo.md Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
12fbd424a5
commit
94e563055f
@@ -1,6 +1,9 @@
|
||||
import type { BasePayload } from 'payload'
|
||||
|
||||
import type { TitleOrder } from './composeTitle.js'
|
||||
import type { VerificationMetadata } from './searchSettings.js'
|
||||
|
||||
import { verificationFrom } from './searchSettings.js'
|
||||
|
||||
type SettingsShape = {
|
||||
[key: string]: unknown
|
||||
@@ -25,6 +28,8 @@ export type SiteMetaConfig = {
|
||||
/** Global fallback meta description. */
|
||||
siteDescription?: null | string
|
||||
siteName: null | string
|
||||
/** Site Settings → Search & AI → verification codes (Search Console, Bing, Yandex). */
|
||||
verification?: VerificationMetadata
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,7 +107,9 @@ export async function readSiteMetaConfig({
|
||||
}
|
||||
|
||||
const share = settings.defaultShareImage
|
||||
const verification = verificationFrom(settings)
|
||||
return {
|
||||
...(verification ? { verification } : {}),
|
||||
defaultShareImage: share && typeof share === 'object' ? (share as Record<string, unknown>) : null,
|
||||
siteDescription: (settings.siteDescription as string | undefined) ?? null,
|
||||
siteName: (settings[siteNameField] as string | undefined) ?? null,
|
||||
|
||||
Reference in New Issue
Block a user