feat(ports): added in production port if in production
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user