fix(tradein): HOSTNAME=0.0.0.0 + NEXT_PUBLIC_API_BASE_URL build-arg #376

Merged
lekss361 merged 1 commit from fix/tradein-hostname-502 into main 2026-05-21 07:37:17 +00:00
Owner

502 fix: Next.js standalone биндился на HOSTNAME=. API fix: фронт собирался без NEXT_PUBLIC_API_BASE_URL.

502 fix: Next.js standalone биндился на HOSTNAME=<container-id>. API fix: фронт собирался без NEXT_PUBLIC_API_BASE_URL.
lekss361 added 1 commit 2026-05-21 07:37:08 +00:00
502 fix: Next.js standalone server.js биндился на HOSTNAME=<container-id>
вместо 0.0.0.0 → Caddy не мог достучаться до tradein-frontend:3000.
Теперь HOSTNAME=0.0.0.0 и в Dockerfile (runner ENV), и в compose.

API routing fix: фронт собирался без NEXT_PUBLIC_API_BASE_URL, fetch шёл
на same-origin /api/* (главный gendesign-backend) вместо /trade-in/api/*.
Добавлен build-arg в Dockerfile + workflow.
lekss361 merged commit db36b6db91 into main 2026-05-21 07:37:17 +00:00
lekss361 deleted branch fix/tradein-hostname-502 2026-05-21 07:37:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#376
No description provided.