mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
chore(release): 1.2.5-rc.7
This commit is contained in:
+1
-1
@@ -26,5 +26,5 @@ keywords:
|
|||||||
- web-ui
|
- web-ui
|
||||||
- agent
|
- agent
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
version: 1.2.5-rc.6
|
version: 1.2.5-rc.7
|
||||||
date-released: "2026-02-01"
|
date-released: "2026-02-01"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "portabase",
|
"name": "portabase",
|
||||||
"version": "1.2.5-rc.6",
|
"version": "1.2.5-rc.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NODE_ENV=development tsx watch server/server.ts",
|
"dev": "NODE_ENV=development tsx watch server/server.ts",
|
||||||
|
|||||||
+19
-9
@@ -1,6 +1,7 @@
|
|||||||
import next from "next";
|
import next from "next";
|
||||||
import express from "express";
|
import express from "express";
|
||||||
import {mountApi} from "./api";
|
import {mountApi} from "./api";
|
||||||
|
import http from "http";
|
||||||
|
|
||||||
const port = Number(process.env.PORT) || 8887;
|
const port = Number(process.env.PORT) || 8887;
|
||||||
const dev = process.env.NODE_ENV !== "production";
|
const dev = process.env.NODE_ENV !== "production";
|
||||||
@@ -17,11 +18,17 @@ async function start() {
|
|||||||
|
|
||||||
await nextApp.prepare();
|
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();
|
if (req.path.startsWith('/services/v1')) return next();
|
||||||
handle(req, res).catch((err) => {
|
handle(req, res).catch((err) => {
|
||||||
console.error('Next.js App Router error:', 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", () => {
|
server.listen(port, "0.0.0.0", () => {
|
||||||
console.log(
|
console.log(`NEXT APP → http://localhost:${port}`);
|
||||||
`NEXT APP → http://localhost:${port}`
|
console.log(`API → http://localhost:${port}/services/v1`);
|
||||||
);
|
|
||||||
console.log(
|
|
||||||
`API → http://localhost:${port}/services/v1`
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user