🎉 live server seems to be working now

This commit is contained in:
2026-05-14 14:29:57 +02:00
commit d72e439fd9
181 changed files with 47406 additions and 0 deletions

19
internal/live/web.go Normal file
View File

@@ -0,0 +1,19 @@
package live
import (
"embed"
"io/fs"
"net/http"
)
//go:embed web/index.html
var webFS embed.FS
func staticHandler() http.Handler {
sub, err := fs.Sub(webFS, "web")
if err != nil {
// Embed misconfiguration is a build-time bug; fall back to 404.
return http.NotFoundHandler()
}
return http.FileServer(http.FS(sub))
}