chore: improve production deployment flexibility

- Switch frontend from nginx to caddy for consistency with Coolify
- Make VITE_API_URL optional, auto-derive from window.location.origin/api
- Simplifies deployment by not requiring build-time API URL

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Joyce
2026-01-21 14:55:26 -05:00
parent 7fefd634f5
commit a8ec0936d4
3 changed files with 13 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ services:
context: ./frontend
dockerfile: Dockerfile.prod
args:
VITE_API_URL: ${VITE_API_URL:?VITE_API_URL required}
VITE_API_URL: ${VITE_API_URL:-}
ports:
- "8080:8080"
depends_on: