chore(release): 1.2.5-rc.7

This commit is contained in:
charlesgauthereau
2026-02-01 21:14:35 +01:00
parent c2726e6b18
commit 8420d6f97b
3 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -26,5 +26,5 @@ keywords:
- web-ui
- agent
license: Apache-2.0
version: 1.2.5-rc.6
version: 1.2.5-rc.7
date-released: "2026-02-01"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "portabase",
"version": "1.2.5-rc.6",
"version": "1.2.5-rc.7",
"private": true,
"scripts": {
"dev": "NODE_ENV=development tsx watch server/server.ts",
+19 -9
View File
@@ -1,6 +1,7 @@
import next from "next";
import express from "express";
import {mountApi} from "./api";
import http from "http";
const port = Number(process.env.PORT) || 8887;
const dev = process.env.NODE_ENV !== "production";
@@ -17,11 +18,17 @@ async function start() {
await nextApp.prepare();
const server = express();
const app = express();
mountApi(server);
app.use((req, res, next) => {
req.setTimeout(0);
res.setTimeout(0);
next();
});
server.use((req, res, next) => {
mountApi(app);
app.use((req, res, next) => {
if (req.path.startsWith('/services/v1')) return next();
handle(req, res).catch((err) => {
console.error('Next.js App Router error:', err);
@@ -29,13 +36,16 @@ async function start() {
});
});
const server = http.createServer(app);
server.setTimeout(0);
server.headersTimeout = 0;
server.requestTimeout = 0;
server.keepAliveTimeout = 0;
server.listen(port, "0.0.0.0", () => {
console.log(
`NEXT APP → http://localhost:${port}`
);
console.log(
`API → http://localhost:${port}/services/v1`
);
console.log(`NEXT APP → http://localhost:${port}`);
console.log(`API → http://localhost:${port}/services/v1`);
});
}