+1
-1
proxy.js
+1
-1
proxy.js
···
64
64
65
65
// if there's no matching file, try to treat it as a folder and use an index.html inside it
66
66
if (!asset) {
67
-
const path = req.url.slice(1).split("/").concat("index.html").join("/");
67
+
const path = req.url.slice(1).split("/").filter(Boolean).concat("index.html").join("/");
68
68
asset = record.value.assets[path];
69
69
}
70
70