Files
sam d6ca6a72a5
Quality / check (push) Canceled after 1m27s
deploy / gate (push) Successful in 4m28s
deploy / archied-image (push) Successful in 3m29s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped
build(ui): build the dashboard in CI and the Taskfile instead of committing ui/dist
2026-11-01 22:07:36 +11:00

18 lines
399 B
Go

//go:build !no_ui
// Package ui embeds the built dashboard in dist/. `task ui` builds it, and
// `task build` and CI build it before any Go build that embeds it.
package ui
import (
"embed"
"io/fs"
)
//go:embed all:dist
var distDir embed.FS
// DistDirFS is the built dashboard rooted at dist/, or nil when the binary
// was built with the no_ui tag.
var DistDirFS, _ = fs.Sub(distDir, "dist")