use port from env in servers

This commit is contained in:
clover caruso 2025-07-09 23:22:46 -07:00
parent 3eb23b3b34
commit b76b36b576

View file

@ -7,6 +7,7 @@ const protocol = "http";
const server = serve({
fetch: app.fetch,
port: Number(process.env.PORT ?? 3000),
}, ({ address, port }) => {
if (address === "::") address = "::1";
console.info(url.format({