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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user