// Package adminweb embeds the built admin SPA (Vite dist). During Docker builds // the real dist/ is produced by the node stage and copied in before go build; // the committed placeholder keeps the package compilable for `go build ./...`. package adminweb import ( "embed" "io/fs" ) //go:embed all:dist var distFS embed.FS // Dist returns the embedded SPA filesystem rooted at dist/. func Dist() fs.FS { sub, err := fs.Sub(distFS, "dist") if err != nil { panic(err) } return sub }