Set port to 80 and add hello-world

This commit is contained in:
Hydroxycarbamide 2024-01-03 10:46:44 +01:00
parent 80ebab8fd9
commit 17eff4e739

View file

@ -1,3 +1,5 @@
console.log("Hello World!");
const fetch = (req: Request) => {
const url = new URL(req.url);
const path = url.pathname;
@ -39,7 +41,7 @@ const fetch = (req: Request) => {
}
Bun.serve({
port: 8888,
port: 80,
hostname: "localhost",
fetch
});