fix (bundle): bundler assets path missmatch

This commit is contained in:
MickaelK 2025-07-30 17:01:47 +10:00
parent b7e0b1ad25
commit 0e2a570594

View file

@ -243,7 +243,7 @@ func ServeBundle(ctx *App, res http.ResponseWriter, req *http.Request) {
urls := req.URL.Query()["url"]
for i := 0; i < len(urls); i++ {
curPath := "assets" + strings.TrimPrefix(urls[i], "/assets/"+BUILD_REF)
curPath := "/assets/" + strings.TrimPrefix(urls[i], "/assets/"+BUILD_REF+"/")
var file io.ReadCloser
var err error
if f := applyPatch(curPath); f != nil {