Restore back node based http server for e2e tests

This commit is contained in:
Andrey Antukh
2026-01-26 18:16:59 +01:00
committed by Eva Marco
parent ea25c5db99
commit 7a842ce36a
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
import express from "express";
import compression from "compression";
import { fileURLToPath } from "url";
import path from "path";
const app = express();
const port = 3000;
app.use(compression());
const staticPath = path.join(
fileURLToPath(import.meta.url),
"../../resources/public",
);
app.use(express.static(staticPath));
app.listen(port, () => {
console.log(`Listening at 0.0.0.0:${port}`);
});