Skip to content

Commit

Permalink
chore: use Deno.serve
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 8, 2023
1 parent 1424295 commit 9e4f44d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deploy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { lookup } from "https://deno.land/x/media_types/mod.ts";

console.log("Visit http://localhost:8000/");
serve(async ({ url }) => {
Deno.serve(async ({ url }) => {
let path = "." + new URL(url).pathname;
if (path.endsWith("/")) {
path += "index.html";
Expand Down

0 comments on commit 9e4f44d

Please sign in to comment.