fix: add /assets/ prefix to hashfs paths in prod
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user