mirror of
https://github.com/documenso/documenso.git
synced 2026-07-14 14:57:12 +10:00
chore: add configurable hostname
This commit is contained in:
@@ -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}`);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user