Files
evig/scripts
Mao NakamotoandClaude Opus 4.8 ee14bc40e0 fix(storage): durable self-hosted uploads fallback + persistent dir
Prod image uploads were broken: the local-fs path was gated to dev only and S3
was never configured, so uploads returned an error in production. Make local-fs
the universal fallback (writes to public/uploads), and have the deploy symlink
each release's public/uploads → a persistent /opt/revampit/uploads store so
images survive deploys and are served by Next at /uploads/*.

Provider-agnostic: setting S3_* (R2/Hetzner/any S3) switches to object storage
with zero code change; absent S3_*, it falls back to this durable local store.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 01:47:24 +02:00
..