Skip to content

Commit

Permalink
update deno to use built in http server
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbinyq committed Apr 8, 2024
1 parent e35569e commit d7fec34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/deno/server.ts
@@ -1,4 +1,3 @@
import { serve } from "https://deno.land/std@0.128.0/http/server.ts";
import { createRequestHandlerWithStaticFiles } from "@remix-run/deno";
// Import path interpreted by the Remix compiler
import * as build from "@remix-run/dev/server-build";
Expand All @@ -10,5 +9,4 @@ const remixHandler = createRequestHandlerWithStaticFiles({
});

const port = Number(Deno.env.get("PORT")) || 8000;
console.log(`Listening on http://localhost:${port}`);
serve(remixHandler, { port });
Deno.serve({ port }, remixHandler);

0 comments on commit d7fec34

Please sign in to comment.