Bucket site-media (project homelab) holds public/images/{logo.png,
profile.jpg} under stable file ids equal to the filenames, read("any")
so browsers fetch them keyless. src/lib/media.ts builds the /view and
/preview URLs; the profile circle uses preview width=256 (Appwrite resize
44 KB -> 10 KB webp/jpeg, cached on the storage layer with a 45-day
expiry). Each img keeps onerror swap to the public/images/ copy, which
stays in git as upload source and outage fallback.
Importer now upserts media too (size-match skip, delete+recreate on
change). Server-side note: _APP_STORAGE_LIMIT was unset (0), which
made every upload fail 'File size not allowed' and stored 0 in new
buckets' maximumFileSize; set to 30 MiB in .env + recreate, and the
bucket updated to match. Console storage UI verified rendering on
self-hosted 2.7.4 (unlike documentsdb).
Idempotent upsert of src/content markdown into the spaghet-home
TablesDB database (blog/projects/work/legal) on appwrite.spaghet.io,
as part of the .md -> Appwrite documents migration.
Pivoted from the DocumentsDB capability: self-hosted Appwrite 2.7.4
gates its console UI ('feature not available on the current console
version'), so content management needs the TablesDB UI instead.
TablesDB also gives working per-column fulltext indexes and runs on
the shared PostgreSQL container.