From e6e3d6d6c62341201ef31574e1256c09de135862 Mon Sep 17 00:00:00 2001 From: Dustin Essington Date: Wed, 4 Oct 2023 20:09:26 -0600 Subject: [PATCH] quick bug fix --- webserver/webserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver/webserver.go b/webserver/webserver.go index e18eac1..fb3e326 100644 --- a/webserver/webserver.go +++ b/webserver/webserver.go @@ -241,7 +241,7 @@ func newStaticFileSystem() *staticFileSystem { func (s *staticFileSystem) Exists(prefix string, path string) bool { buildpath := "" if baseurl == "/" { - buildpath = fmt.Sprintf("build/%s", path) + buildpath = fmt.Sprintf("build%s", path) } else { buildpath = fmt.Sprintf("build/%s", strings.TrimPrefix(path, baseurl.String())) }