Update index.ts

This commit is contained in:
Andras Bacsai
2024-06-04 11:23:18 +02:00
committed by GitHub
parent f6cfcb6643
commit 5ad40d2e1d

View File

@@ -1,5 +1,5 @@
const PORT = process.env.PORT || 3000;
const HOSTNAME = process.env.HOSTNAME || "0.0.0.0"
const HOSTNAME = process.env.HOST || "0.0.0.0"
Bun.serve({
hostname: HOSTNAME,
port: PORT,
@@ -15,4 +15,4 @@ Bun.serve({
return new Response("404!");
},
})
console.log(`Server running at http://${HOSTNAME}:${PORT}`);
console.log(`Server running at http://${HOSTNAME}:${PORT}`);