From 6d9e0c20f6031402f19b13e08ce44a5265c925fe Mon Sep 17 00:00:00 2001 From: im_zhou <32025208+im-zhou@users.noreply.github.com> Date: Thu, 30 Nov 2023 10:59:08 +0800 Subject: [PATCH] fix static assets (#3816) --- pkg/util/http/server.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/util/http/server.go b/pkg/util/http/server.go index e49cefe4..99bed364 100644 --- a/pkg/util/http/server.go +++ b/pkg/util/http/server.go @@ -46,9 +46,7 @@ type Server struct { } func NewServer(cfg v1.WebServerConfig) (*Server, error) { - if cfg.AssetsDir != "" { - assets.Load(cfg.AssetsDir) - } + assets.Load(cfg.AssetsDir) addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port)) if addr == ":" {