From 7f9b63855326cd4a130dc63a89f975eed454bcdc Mon Sep 17 00:00:00 2001 From: xyzm Date: Tue, 10 Feb 2026 20:40:35 +0800 Subject: [PATCH] fix: use all: prefix for embed to include files starting with underscore --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6c207b4..5f3a85c 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ import ( ) var ( - //go:embed web/dist/* + //go:embed all:web/dist f embed.FS //go:embed .release* @@ -31,7 +31,7 @@ func init() { // 设置 mime 类型,防止 docker 镜像中缺少 mime 类型导致 js 文件加载失败 mime.AddExtensionType(".js", "application/javascript") mime.AddExtensionType(".css", "text/css") - + constant.InitReleaseInfo(rf) setting.Setup() logging.Setup()