Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

change go:embed call to use the go:embed all: directive (#4312)

mahmed2000bc5163b4b0d9
diff --git a/static/static.go b/static/static.go
index c6edbbd7b7..9e464b4a74 100644
--- a/static/static.go
+++ b/static/static.go
@@ -11,10 +11,9 @@ import (
"github.com/pkg/errors"
)
-//go:embed web/*
-//go:embed web/_next/static
-//go:embed web/_next/static/chunks/pages/*.js
-//go:embed web/_next/static/*/*.js
+// The 'all:' prefix is used to include all files and subdirectories under 'web/'.
+// This avoids errors if optional subdirectories (e.g., 'web/_next') are missing.
+//go:embed all:web/*
var webFiles embed.FS
// GetWeb will return an embedded filesystem reference to the admin web app.