0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00
penpot/frontend/scripts/e2e-server.js

14 lines
339 B
JavaScript
Raw Normal View History

import express from "express";
import { fileURLToPath } from "url";
import path from "path";
const app = express();
2024-05-09 13:17:12 +02:00
const port = 3000;
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}`);
});