Files
s1d3sw1ped 1cc94f2c99
Format / gofmt (push) Failing after 27s
CI / Build (push) Successful in 51s
CI / Go Tests (push) Failing after 21s
initial commit
2026-06-06 07:54:44 -05:00

16 lines
581 B
Go

package ui
import "embed"
// Dist contains the built Svelte SPA assets (index.html + js/css/...).
// Built by `make ui-build` (npm run build in ui/) and embedded at compile time.
// Served by the Go binary for the admin UI on :81.
//
// Note: SvelteKit outputs assets under dist/_app/... (leading underscore).
// Go's //go:embed skips dirs/files starting with _ by default in patterns,
// so we explicitly list dist/_app to ensure the client JS/CSS are embedded.
// See https://pkg.go.dev/embed and SvelteKit adapter-static output.
//
//go:embed dist dist/_app
var Dist embed.FS