litellm/ui
Yuneng Jiang 6ef81c0bb5
fix(ui): build the dashboard once on the native platform
The UI image builds linux/amd64 and linux/arm64 on an x86_64 runner, so
the arm64 leg runs the whole Node toolchain under QEMU emulation. That
leg spent roughly 58 minutes on `npm ci` alone and never reached
`npm run build`, tripping the 60-minute job timeout and cancelling the
release before the chart could be packaged.

The builder stage does not need to be per-architecture. next.config.mjs
sets `output: "export"`, so the builder emits a static export to
/app/out; plain HTML, CSS and JS with no native artifacts. Both runtime
stages copy the same bytes, so the second, emulated build produced
identical output at enormous cost.

Pinning the builder to $BUILDPLATFORM runs it once on the runner's
native architecture. Only the nginx runtime stays multi-arch, which is
the stage that genuinely differs. Locally the full two-platform build
drops from a stall to 39 seconds, and the `npm ci` stage goes from six
scheduled lines to one, with both runtime legs still assembling.

This does not apply to gateway, backend or migrations; those compile
Python wheels, which really are architecture-specific.
2026-07-18 20:02:37 -07:00
..
litellm-dashboard feat(complexity-router): add return_raw_model_name toggle for response model field (#33875) 2026-07-18 19:24:56 -07:00
Dockerfile fix(ui): build the dashboard once on the native platform 2026-07-18 20:02:37 -07:00
nginx.conf feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00