Compare commits

...

3 Commits

2 changed files with 77 additions and 76 deletions

View File

@@ -71,7 +71,7 @@
} }
}, },
"admConfig": { "admConfig": {
"build": 20, "build": 22,
"oldBuild": "backend-0.1.2-218.zip" "oldBuild": "backend-0.1.2-218.zip"
} }
} }

View File

@@ -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) => {