fix(web): copy root tsconfig.base.json into Docker build stage

The apps/web Dockerfile selectively COPYs workspace sources but omitted the
root tsconfig.base.json that pkgs/{wallet,brand,analytics,chains} each `extends`.
Vite 8's rolldown/oxc TS transform resolves the extends chain at build time and
hard-fails ("Tsconfig not found /app/tsconfig.base.json", surfaced only as the
opaque `errors: [Getter/Setter]`) when the base is absent. Local vite build
masks it (runs against the full repo tree where the base exists); every
containerized build failed regardless of OS/arch. Reproduced in node:22-alpine
and verified fixed — dist/ now produced.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
zeekay
2026-07-18 14:21:38 -07:00
co-authored by Hanzo Dev
parent 5754513482
commit dc08a6af0d
+7
View File
@@ -38,6 +38,13 @@ COPY pkgs/analytics/ pkgs/analytics/
COPY pkgs/wallet/ pkgs/wallet/
COPY apps/web/ apps/web/
# Root tsconfig.base.json — the workspace packages (pkgs/*) each `extends` it.
# Vite 8's rolldown/oxc TS transform resolves the extends chain at build time and
# hard-fails ("Tsconfig not found /app/tsconfig.base.json") if the base is absent,
# so it MUST be present in the build context. (Local `vite build` masks this: it
# runs against the full repo tree where the base already exists.)
COPY tsconfig.base.json ./
# Vite build → apps/web/dist (copyBrandJson plugin writes dist/brand.json from
# pkgs/brand/brand.json; the ConfigMap overlay replaces it at deploy time).
RUN pnpm --filter "@luxfi/wallet-web" build