Shares the service area in the structured data

The business's areaServed now comes from a serviceArea list in the site
content: Huizen and Gooi en Vechtstreek, as the pages describe it,
instead of a fixed Place Huizen. Services on other pages can use the
same list through areaServed().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 23:40:24 +02:00
co-authored by Claude Opus 5.5
parent eb235368bf
commit befe97af1e
5 changed files with 87 additions and 2 deletions
+20
View File
@@ -66,6 +66,26 @@ export const anySiteContent: fc.Arbitrary<SiteContent> = fc.record({
socials: fc.array(socialLink, { maxLength: 4 }),
email: validEmail,
contactForm: fc.record({ enabled: fc.boolean() }),
serviceArea: fc.array(
fc.record({
type: fc.constantFrom(
'City' as const,
'AdministrativeArea' as const,
),
// Includes blanks and padding, as an editor might type
name: fc.oneof(
fc.constantFrom(
'Huizen',
'Gooi en Vechtstreek',
'',
' ',
' Bussum ',
),
fc.string({ maxLength: 20 }),
),
}),
{ maxLength: 4 },
),
});
// Specialisations with padding, blanks and repeats, as an editor might type