diff --git a/assets/static_prod.go b/assets/static_prod.go index 6a17b54..d14314b 100644 --- a/assets/static_prod.go +++ b/assets/static_prod.go @@ -18,9 +18,9 @@ var ( func Handler() http.Handler { log.Debug().Msg("static assets are embedded with hashfs") - return hashfs.FileServer(staticSys) + return http.StripPrefix("/assets/", hashfs.FileServer(staticSys)) } func StaticPath(path string) string { - return "/" + staticSys.HashName(path) + return "/assets/" + staticSys.HashName(path) }