3x-ui/.github
MHSanaei d3dcd1d8bd
ci: build frontend bundle before Go compile in release.yml + Dockerfile
Phase 8 cut all panel HTML routes over to web/dist/ and embedded the
Vite bundle into the Go binary via //go:embed all:dist. web/dist/ is
.gitignored, so on a fresh CI checkout it doesn't exist — every Go
build since Phase 8 has been failing with "pattern dist: no matching
files found" or producing a binary that 404s on first asset request.

release.yml: add a setup-node@v4 + npm ci + npm run build trio before
the existing go build step in both the Linux matrix job (7 arches)
and the Windows job. npm cache is keyed on frontend/package-lock.json.

Dockerfile: add a node:22-alpine frontend stage that runs npm ci +
npm run build and emits to /src/web/dist (via vite.config.js's outDir).
The golang builder stage then COPY --from=frontend /src/web/dist into
./web/dist before the go build, so embed.FS sees the bundle.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 16:49:42 +02:00
..
ISSUE_TEMPLATE chore: new templates for issues and pull requests (#2935) 2025-04-23 09:04:36 +02:00
workflows ci: build frontend bundle before Go compile in release.yml + Dockerfile 2026-05-09 16:49:42 +02:00
copilot-instructions.md i18n: collapse two translation databases into a single web/translation/<lang>.json set 2026-05-08 18:05:56 +02:00
dependabot.yml Set package ecosystem to GitHub Actions in dependabot.yml 2026-03-17 21:03:32 +01:00
FUNDING.yml donate: nowpayments 2025-09-18 20:14:10 +02:00
pull_request_template.yml chore: new templates for issues and pull requests (#2935) 2025-04-23 09:04:36 +02:00