Philip e5737bf587 Fix uploaded images not loading in standalone Docker mode
Next.js standalone output does not serve files added dynamically to
public/uploads/ after build time. Serve uploads via a new API route
(/api/uploads/[filename]) that reads from disk at request time.

- Add src/app/api/uploads/[filename]/route.ts to stream uploaded files
- Update POST /api/upload to return /api/uploads/<file> URLs
- Update GET /api/upload to list uploads with /api/uploads/ URLs
- Update DELETE /api/upload to accept /api/uploads/ URL prefix
- Add /api/uploads to middleware public routes whitelist

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 09:47:59 -07:00
S
Description
No description provided
1.2 MiB
Languages
TypeScript 77.2%
PHP 17%
JavaScript 4.3%
Dockerfile 0.9%
CSS 0.4%
Other 0.2%