cms: 1:1 article preview (mirror .prose tokens/rules), webp upload transformations to keep repo lean

This commit is contained in:
2026-07-28 19:49:37 +02:00
parent 145490fe60
commit c0edb2033d
3 changed files with 71 additions and 15 deletions
+17
View File
@@ -27,6 +27,23 @@ logo:
media_folder: "public/uploads"
public_folder: "/uploads"
# Keep the git repo lean: images are stored as plain git blobs (no LFS), so
# every upload is converted client-side to WebP q85 and capped at 2048px
# (documented media_libraries transformations). A phone photo lands in the
# repo as ~100-300 KB instead of 5-10 MB.
media_libraries:
default:
config:
slugify_filename: true
transformations:
raster_image:
format: webp
quality: 85
width: 2048
height: 2048
svg:
optimize: true
collections:
- name: news
label: "News"