mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 01:27:02 +01:00
place_photo_bytes held 4,234 Wikimedia Commons thumbnails (1.7 GB of a 4.3 GB database), copied into every nightly backup until the off-site store filled (2026-11-16). Photographs are files: they belong in object storage. - photo-keep-r2.ts: an S3/R2 keep, and a layered keep (R2 first; a photograph found only in Postgres is copied to R2 on first read; new ones go to R2). - The place-photo and og routes use placePhotoKeep(): R2 when the four PHOTOS_S3_* settings exist, Postgres exactly as before otherwise. - scripts/places-photos-to-r2.ts (places:photos:to-r2): one-off resumable copy. - Same S3 client as evig (@aws-sdk/client-s3). Expand first: the table stays until R2 is verified serving; dropping it is a later change (a drop in the same deploy blocks later deploys). Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>