diff --git a/pkg/app/resource.go b/pkg/app/resource.go index 4c62476e0..d00da791f 100644 --- a/pkg/app/resource.go +++ b/pkg/app/resource.go @@ -2,6 +2,7 @@ package app import ( "net/http" + "path/filepath" "strings" ) @@ -101,7 +102,7 @@ func CustomProvider(path, prefix string) ResourceProvider { return localDir{ Handler: http.FileServer(http.Dir(root)), root: prefix, - appWASM: prefix + "/web/app.wasm", + appWASM: filepath.Join(prefix, "web/app.wasm"), } }