Server entries no longer load 'use client' modules
The main entry and next/middleware re-exported module barrels that also export React client components (LanguageSwitcher, AlternateLinks*, AccessibilityWidget), so payload.config, the CLI and the proxy bundle evaluated React UI. They now import concrete files; i18n client components moved to modules/i18n/client.ts. test/entryGraph guards it. Also lint fixes in tests added on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e5d86b8afe
commit
14fd2c497f
@@ -59,6 +59,11 @@ export type CreateMcpRouteArgs = {
|
||||
/** Archive-backed collections (same as the plugin option) for get_page. */
|
||||
content?: ContentOption
|
||||
getCachedPayload: () => Promise<BasePayload>
|
||||
/**
|
||||
* Hide pages the site hides (construction mode): filtered out of list_pages
|
||||
* and search_content, "not found" in get_page. createContentHelpers passes it.
|
||||
*/
|
||||
isPathVisible?: PathVisibility
|
||||
/** Max messages in one JSON-RPC batch. Default 10. */
|
||||
maxBatch?: number
|
||||
/**
|
||||
@@ -74,11 +79,6 @@ export type CreateMcpRouteArgs = {
|
||||
settingsSlug?: string
|
||||
/** Field holding a richer AI summary (buildSummaryField) to prefer in search results. */
|
||||
summaryField?: string
|
||||
/**
|
||||
* Hide pages the site hides (construction mode): filtered out of list_pages
|
||||
* and search_content, "not found" in get_page. createContentHelpers passes it.
|
||||
*/
|
||||
isPathVisible?: PathVisibility
|
||||
}
|
||||
|
||||
type JsonRpcId = null | number | string
|
||||
|
||||
Reference in New Issue
Block a user