feat: Configure Deno server to listen on all interfaces and specific port

This commit is contained in:
Mauricio Siu 2025-02-23 19:53:34 -06:00
parent 76005a3603
commit e46a219e37

View File

@ -7,4 +7,4 @@ if (import.meta.main) {
console.log("Add 2 + 3 =", add(2, 3));
}
Deno.serve(() => new Response("Hello, world!"));
Deno.serve({ hostname: "0.0.0.0", port: 8000 }, () => new Response("Hello, world!"));