Fixes from the reference site: 404 page unlisted, own-origin media, fillGlobal defaults, switcher docs
- sitemap, llms.txt and the site index leave out the page assigned as the 404 page (unlistedPageIds, exported); it stays when it is also the homepage - buildImagesConfig: in production with R2_PUBLIC_URL empty, allow the site's own /api/media/file/** so next/image no longer answers 400 - fillGlobal: a choice field (select, radio, checkbox, number, date) still at its defaultValue counts as empty; text is never overwritten - docs: LanguageSwitcher renderLabel needs a 'use client' wrapper (i18n.md, ipal-site, ipal-setup, api.md) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d992d131a2
commit
3645e61f7d
@@ -50,6 +50,10 @@ locale — the caller decides the fallback (404, redirect). A slug equal to
|
||||
`homeSlug` (default `'home'`; a string or a per-language map) collapses to the root — for a home page
|
||||
with a different slug, pass `homeSlug`.
|
||||
|
||||
**Pages with no URL of their own:** `unlistedPageIds(settings)` (root) → the ids of pages assigned to a role that
|
||||
renders elsewhere — today the 404 page (unless it is also the homepage). The sitemap, llms.txt and the site index
|
||||
(MCP `list_pages`) leave them out; use it in your own lists of pages too.
|
||||
|
||||
## Typical case: `/{locale}` → home page
|
||||
|
||||
In the `[locale]/page.tsx` route you read `settings.homepage`, take its slug
|
||||
|
||||
Reference in New Issue
Block a user