Commit Graph

5 Commits

Author SHA1 Message Date
Claude
01a60a0934 Add CORS_ORIGINS=https://cv.alves.world to backend
https://claude.ai/code/session_01Xmxm2QLgFBgRJyYD6VukR6
2026-04-02 18:37:52 +00:00
Claude
f3d1ddad5d Fix API URL config: use Next.js rewrite proxy instead of NEXT_PUBLIC_*
NEXT_PUBLIC_* is baked at build time so runtime docker-compose environment
vars have no effect. Instead:
- next.config.ts rewrites /api/* -> API_BASE_URL/api/* at the server level
- api.ts uses relative paths (no env var in client bundle at all)
- docker-compose passes API_BASE_URL=http://cvfs-backend:8080 at runtime
- Dockerfile no longer needs any build args

Requests: browser -> Next.js server (/api/*) -> cvfs-backend:8080 (/api/*)

https://claude.ai/code/session_01Xmxm2QLgFBgRJyYD6VukR6
2026-04-02 18:23:58 +00:00
Claude
53a05feae5 Fix NEXT_PUBLIC_API_BASE_URL not applying in production build
NEXT_PUBLIC_* vars are inlined at build time, not runtime.
Pass as Docker build arg so Next.js picks it up during bun run build.

https://claude.ai/code/session_01Xmxm2QLgFBgRJyYD6VukR6
2026-04-02 18:21:28 +00:00
c441e53be4 Update docker-compose.yml for single service deployment with Dokploy Traefik 2026-04-02 19:19:10 +02:00
Daniel Alves Rösel
90ad5e0260 Initial commit 2026-04-02 18:47:14 +02:00