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

* change go:embed call to use the all: directive to include underscored dirs instead

* Update static/static.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
mahmed2000
2025-05-03 22:28:59 -07:00
committed by GitHub
co-authored by Copilot Gabe Kangas
parent cb8152f302
commit 00be7720b5
+3 -4
View File
@@ -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.