Optimize CMS images during builds

This commit is contained in:
Kevin
2026-09-04 12:11:09 -04:00
parent 80dd0e0904
commit dd6fae06c9
11 changed files with 136 additions and 22 deletions
+7 -7
View File
@@ -147,7 +147,7 @@ collections:
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config:
max_file_size: 512000
max_file_size: 26214400
multiple: false
- label: Display order
name: order
@@ -183,7 +183,7 @@ collections:
allow_multiple: false
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config: { max_file_size: 512000, multiple: false }
config: { max_file_size: 26214400, multiple: false }
- label: Home hero image description
name: homeHeroImageAlt
widget: string
@@ -196,7 +196,7 @@ collections:
allow_multiple: false
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config: { max_file_size: 512000, multiple: false }
config: { max_file_size: 26214400, multiple: false }
- label: Home story image description
name: homeStoryImageAlt
widget: string
@@ -209,7 +209,7 @@ collections:
allow_multiple: false
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config: { max_file_size: 512000, multiple: false }
config: { max_file_size: 26214400, multiple: false }
- label: About hero image description
name: aboutHeroImageAlt
widget: string
@@ -222,7 +222,7 @@ collections:
allow_multiple: false
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config: { max_file_size: 512000, multiple: false }
config: { max_file_size: 26214400, multiple: false }
- label: About story image description
name: aboutStoryImageAlt
widget: string
@@ -235,7 +235,7 @@ collections:
allow_multiple: false
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config: { max_file_size: 512000, multiple: false }
config: { max_file_size: 26214400, multiple: false }
- label: Services hero image description
name: servicesHeroImageAlt
widget: string
@@ -248,7 +248,7 @@ collections:
allow_multiple: false
pattern: ['^[A-Za-z0-9][A-Za-z0-9._-]*\.(?:jpe?g|png|webp|avif)$', 'Choose an approved JPG, PNG, WebP, or AVIF upload. SVG and general files are not allowed.']
media_library:
config: { max_file_size: 512000, multiple: false }
config: { max_file_size: 26214400, multiple: false }
- label: Contact hero image description
name: contactHeroImageAlt
widget: string