feat(ports): added in production port if in production

This commit is contained in:
2025-03-17 08:21:09 -05:00
parent 4e885ce74c
commit 121bed59fd

View File

@@ -129,10 +129,11 @@ process.on("beforeExit", async () => {
//await closePool();
});
const port = process.env.NODE_ENV === "development" ? process.env.VITE_SERVER_PORT : process.env.PROD_PORT;
serve(
{
fetch: app.fetch,
port: Number(process.env.VITE_SERVER_PORT),
port: Number(port),
hostname: "0.0.0.0",
},
(info) => {