Merge claude/performance-2026-12-36a376: fewer queries per render, no 'use client' on the /client barrels, budgets, the doctor's performance and growth groups
Conflicts kept both sides: the doctor status (twoFactorConfirm with growth and media), its key test, e2e:built (the 2FA enrolment spec and the performance budgets), the reference index (regenerated). Reference skill copies synced (iapl-performance added, iapl-audit and iapl-reference updated). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -28,7 +28,7 @@ export const Pages: CollectionConfig = {
|
||||
{ name: 'layout', type: 'blocks', blocks: pageBlocks, minRows: 1 },
|
||||
buildSummaryField(), // aiSummary — GEO (llms.txt, MCP)
|
||||
buildNoindexField(),
|
||||
{ name: 'slugHistory', type: 'array', admin: { components: rowLabel('slug', 'Old address'), readOnly: true }, fields: [{ name: 'slug', type: 'text' }], labels: { plural: 'Old addresses', singular: 'Old address' } },
|
||||
{ name: 'slugHistory', type: 'array', admin: { components: rowLabel('slug', 'Old address'), readOnly: true }, fields: [{ name: 'slug', type: 'text', index: true }], labels: { plural: 'Old addresses', singular: 'Old address' } },
|
||||
],
|
||||
hooks: {
|
||||
afterChange: [revalidate.afterChange],
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function Header({ header, locale, settings, themeLabel }: Props) {
|
||||
<header className="sticky top-0 z-header border-b border-border bg-surface-raised/95 backdrop-blur">
|
||||
<Container className="flex items-center justify-between gap-6 py-4">
|
||||
<Link className="flex items-center gap-3 font-heading text-h4 text-fg-strong" href={home}>
|
||||
{logo ? <Media alt="" className="h-8 w-auto" Image={Image} priority resource={logo} sizes="160px" /> : null}
|
||||
{logo ? <Media alt="" className="h-8 w-auto" eager Image={Image} resource={logo} sizes="160px" /> : null}
|
||||
<span>{typeof settings?.siteName === 'string' ? settings.siteName : null}</span>
|
||||
</Link>
|
||||
<nav aria-label={header.menuLabel ?? undefined} className="hidden md:block">
|
||||
|
||||
@@ -2,9 +2,8 @@ import { faqItemsFromLayout } from '@intecion/ipal-kit/blocks'
|
||||
// @starter:if localBusiness
|
||||
import { buildLocalBusinessJsonLd, createContentHelpers } from '@intecion/ipal-kit'
|
||||
|
||||
import { getPayload } from 'payload'
|
||||
import { contentConfig } from '@/content.config'
|
||||
import { i18nConfig, type Locale } from '@/i18n.config'
|
||||
import { i18nConfig } from '@/i18n.config'
|
||||
// @starter:else
|
||||
//: import { createContentHelpers } from '@intecion/ipal-kit'
|
||||
//:
|
||||
@@ -65,8 +64,9 @@ export const {
|
||||
// @starter:if localBusiness
|
||||
// LocalBusiness from the Company global (replaces the default WebSite + Organization from Site settings)
|
||||
siteJsonLd: async ({ baseUrl, locale }) => {
|
||||
const payload = await getPayload({ config })
|
||||
const company = await payload.findGlobal({ slug: 'company', locale: locale as Locale })
|
||||
// the layout's cached getter: one Company read per request, not two (docs/performance.md → server)
|
||||
const { getCompany } = await import('./globals')
|
||||
const company = await getCompany(locale)
|
||||
return [
|
||||
buildLocalBusinessJsonLd({
|
||||
address: { city: company.address?.city ?? undefined, country: company.address?.country ?? 'PL', postalCode: company.address?.postalCode ?? undefined, street: company.address?.street ?? undefined },
|
||||
|
||||
Reference in New Issue
Block a user