Files
evig/scripts
Mao NakamotoandClaude Opus 4.8 924996a25c fix(images): persist uploads across deploys + backend-agnostic product image cleanup
Image-management investigation found two issues:
- Deploy orphaned ALL user uploads: /api/uploads writes to public/uploads at
  runtime, but the deploy replaces the whole app dir each release → every
  uploaded listing photo/avatar/IT-Hilfe image was lost on the next deploy.
  Copy public/uploads forward into each new release before the swap. INTERIM
  durability fix until images move to S3/object storage (needs Hetzner keys).
- updateProductImage cleaned up old images only if the URL matched the dead
  blob.vercel-storage.com host (Vercel Blob is gone). Replace with a
  backend-agnostic deleteImage() call guarded on a differing URL.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 10:28:02 +02:00
..