fix: add /assets/ prefix to hashfs paths in prod
All checks were successful
CI / Deploy / test (push) Successful in 13s
CI / Deploy / lint (push) Successful in 24s
CI / Deploy / deploy (push) Successful in 1m27s

This commit is contained in:
Ryan Hamamura
2026-03-03 13:37:04 -10:00
parent 67a768ea22
commit 8573e87bf6

View File

@@ -18,9 +18,9 @@ var (
func Handler() http.Handler { func Handler() http.Handler {
log.Debug().Msg("static assets are embedded with hashfs") 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 { func StaticPath(path string) string {
return "/" + staticSys.HashName(path) return "/assets/" + staticSys.HashName(path)
} }