Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/blocks/src/cms/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export function getSiteSeo(): {
noIndexing?: boolean;
} {
const blocks = loadBlocks();
const site = blocks["Site"] as Record<string, unknown> | undefined;
const site = (blocks["Site"] ?? blocks["site"]) as Record<string, unknown> | undefined;
if (!site) return {};
const seo = site.seo as Record<string, unknown> | undefined;
if (!seo) return {};
Expand Down
2 changes: 1 addition & 1 deletion packages/tanstack/src/sdk/workerEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ export function createDecoWorkerEntry(

// Merge site-wide SEO defaults into seo props
const blocks = loadBlocks();
const site = blocks["Site"] as Record<string, unknown> | undefined;
const site = (blocks["Site"] ?? blocks["site"]) as Record<string, unknown> | undefined;
const fullSiteSeo = (site?.seo as Record<string, unknown>) ?? {};

// When SeoV2 loader ran, use its output as base (preserves key order)
Expand Down