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())) }