migrateEnsureHeaderComponentName

Function

Ensure the header component has a name. Starting ~Sept 15, 2025, up to Nov 4, 2025, Sites created via the "Add Content" flow, had a header component without a name. This resulted in the header not being rendered in the site, but was renderered in the editor. This migration ensures that the header component has a name of "site-header" if it is missing.

  • migrateEnsureHeaderComponentName(siteModel: IModel) : IModel

Parameters

Parameter Type Default Notes
siteModel Required IModel

Returns

Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in packages/common/src/sites/_internal/migrateEnsureHeaderComponentName.ts:14