chore: add configurable hostname

This commit is contained in:
Ephraim Atta-Duncan
2025-11-27 12:47:09 +00:00
parent 94646cd48a
commit 117c787129
+11 -1
View File
@@ -31,5 +31,15 @@ server.use(
const handler = handle(build, server);
const port = parseInt(process.env.PORT || '3000', 10);
const hostname = process.env.HOSTNAME || '0.0.0.0';
serve({ fetch: handler.fetch, port });
serve(
{
fetch: handler.fetch,
port,
hostname,
},
(info) => {
console.log(`🚀 Documenso Server listening on http://${info.address}:${info.port}`);
},
);