Skip to content

fix(tracker-web): versioned BFF base /api/v1 + build .dockerignore (GT-447) - #77

Merged
beyondnetPeru merged 1 commit into
developfrom
feature/gt-447-fullstack-local
Jul 25, 2026
Merged

fix(tracker-web): versioned BFF base /api/v1 + build .dockerignore (GT-447)#77
beyondnetPeru merged 1 commit into
developfrom
feature/gt-447-fullstack-local

Conversation

@beyondnetPeru

Copy link
Copy Markdown
Contributor

Companion to the Core repo's GT-447 one-command full-stack local bring-up.

Two build drifts surfaced while wiring the Objective-1 chain (tracker-web → tracker-api → core-api):

  • Stale SPA base: the tracker-web image baked VITE_TRACKER_BFF_BASE_URL=/api, a default predating the CD-32 versioned surface. The SPA's own code default is /api/v1 and tracker-api serves under /api/v1, so the built SPA called /api/auth/config → 404 and login failed. Bake /api/v1; nginx's /api/ proxy already covers it.
  • Missing .dockerignore: the tracker image build contexts are src/, which carried 663 MB of node_modules (1.1 GB total) with no ignore file. Every image restores deps from scratch, so host build outputs must never leak in.

Verified via the full-stack browser chain: the Control Tower renders with every /api/v1/* data call returning 200 and a "PostgreSQL healthy" indicator.

🤖 Generated with Claude Code

…ignore

The tracker-web image baked VITE_TRACKER_BFF_BASE_URL=/api (a stale ARG
default predating the CD-32 versioned surface). The SPA's own code default is
/api/v1 and tracker-api serves its business surface under /api/v1, so the built
SPA called /api/auth/config → 404 and the login screen failed with "Could not
reach the auth service". Baking /api/v1 aligns the SPA with the versioned BFF;
nginx's /api/ proxy already covers it.

Also add src/.dockerignore: the tracker image build contexts are src/, which
carried 663 MB of node_modules (1.1 GB total) with no ignore file — every image
restores deps from scratch, so host build outputs must never leak in.

Surfaced while wiring the Objective-1 (GT-447) one-command full-stack local
bring-up (evolith/product/infra/docker-compose.fullstack.yml).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@beyondnetPeru
beyondnetPeru merged commit bafebd4 into develop Jul 25, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant