From 6544b13d9694ab134cb9baa2b170111ac9f5fb41 Mon Sep 17 00:00:00 2001 From: Furrium Network Date: Sun, 9 Aug 2026 23:06:49 +0800 Subject: [PATCH] Update app.js --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 41d72fd..2c69810 100644 --- a/js/app.js +++ b/js/app.js @@ -15,7 +15,7 @@ const fs = require('fs'); const app = express(); // 服务端配置(config.js,浏览器端加载同名文件但不影响服务端) -const CONFIG = require('./config'); + // 监听端口:环境变量 PORT 优先,其次 config.js 的 SERVER_PORT,最后默认 3000 const PORT = process.env.PORT || CONFIG.SERVER_PORT || 3000;