From f68965611997c5aba20225cde1170969cb1cccbe Mon Sep 17 00:00:00 2001 From: DeleMike Date: Fri, 24 Jul 2026 19:20:51 +0100 Subject: [PATCH] fix static asset paths to load from project root --- api/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server.go b/api/server.go index c8bde36..992b189 100644 --- a/api/server.go +++ b/api/server.go @@ -168,12 +168,12 @@ func setupStaticFiles(r *gin.Engine) { http.StripPrefix("/packs/", fs).ServeHTTP(c.Writer, c.Request) }) - faviconPath := filepath.Join(absPath, "..", "static", "favicon.ico") + faviconPath := filepath.Join("static", "favicon.ico") if _, err := os.Stat(faviconPath); err == nil { r.StaticFile("/favicon.ico", faviconPath) } - logoPath := filepath.Join(absPath, "static", "images", "ScribeServerLogoWhite.png") + logoPath := filepath.Join("static", "images", "ScribeServerLogoWhite.png") if _, err := os.Stat(logoPath); err == nil { r.StaticFile("/images/ScribeServerLogoWhite.png", logoPath) }