Closed hashrock closed 3 years ago
@hashrock, thanks for opening the issue. The fix seems to be not published to the registry. I created a tag with broken code and re-created it on GitHub, but the registry has the old tag hence the bug. Check out 0.4.2
.
import { serve, serveStatic } from "https://deno.land/x/sift@0.4.2/mod.ts";
serve({
"/test": serveStatic("public/index.html", { baseUrl: import.meta.url }),
});
It works! Thank you👍
version: sift 0.4.1, deno 1.15.2, Ubuntu with WSL
Repro
code(retrieved from the documentation):
and I opened
http://localhost:8000/test
then I got: