// Package web embeds the browser UI. The UI is built from web/src with // `npm run build` (see build.mjs) and the output in dist/ is committed, so a // plain `go build` yields a node that serves its own UI. package web import ( "embed" "io/fs" ) //go:embed dist var dist embed.FS // Files returns the built UI, rooted at its index.html. func Files() fs.FS { sub, err := fs.Sub(dist, "dist") if err != nil { panic(err) // dist is embedded at compile time; this cannot fail } return sub }