// Package publicweb embeds the built public 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 publicweb 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 }