feat(ports): added in production port if in production
This commit is contained in:
@@ -129,10 +129,11 @@ process.on("beforeExit", async () => {
|
|||||||
//await closePool();
|
//await closePool();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const port = process.env.NODE_ENV === "development" ? process.env.VITE_SERVER_PORT : process.env.PROD_PORT;
|
||||||
serve(
|
serve(
|
||||||
{
|
{
|
||||||
fetch: app.fetch,
|
fetch: app.fetch,
|
||||||
port: Number(process.env.VITE_SERVER_PORT),
|
port: Number(port),
|
||||||
hostname: "0.0.0.0",
|
hostname: "0.0.0.0",
|
||||||
},
|
},
|
||||||
(info) => {
|
(info) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user