From 7bfaacdafbe302b06e00b403d16503e8ceed8b75 Mon Sep 17 00:00:00 2001 From: ari melody Date: Wed, 28 May 2025 16:39:23 +0100 Subject: [PATCH] server port config --- server/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.js b/server/main.js index 3f98b47..cdcdb01 100644 --- a/server/main.js +++ b/server/main.js @@ -1,10 +1,10 @@ import http from "http"; import path from "path"; -import fs, { openSync } from "fs"; +import fs from "fs"; import Log from "../common/log.js"; import { init as initWS } from "./ws.js"; -var PORT = 3000; +var PORT = process.env.MP_TEST_PORT || 3000; var mime_types = { 'html': 'text/html', 'css': 'text/css',