use port from env in servers

This commit is contained in:
chloe caruso 2025-07-09 23:22:46 -07:00
parent 47215df902
commit c5db92203c

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({