Closed orgsofthq closed 3 years ago
Thanks for opening the issue. This is now fixed in 0.4.0
.
import { serveStatic } from "https://deno.land/x/sift@0.4.0/mod.ts";
serve({
"/": serveStatic("index.html", { baseUrl: import.meta.url }),
});
@satyarohith it seems like there is still an issue with the implementation.
Using the snippet above, I get..
"Not a directory (os error 20), open '[my_path]/index.html/'"
It tries to resolve to ./index.html/
instead of the intended ./index.html
.
Lines 165-167 in mod.ts
append a /
to any route when params?.fileName
is null, which it seems to always be.
@organic-software The issue is fixed in https://github.com/satyarohith/sift/pull/48. Try 0.4.1
and let me know if you still encounter the issue.
The framework doesn't seem to work with serving static files while using Deno Deploy.
The
body
seems to be getting set somewhere, which causes an error when a newRequest
object is created. This doesn't seem to happen when usingdeployctl
locally.repro
mod.ts
http response
deploy logs