Restore to commit 74e578279624c6045ca440a3459ebfa1f8d54191

This commit is contained in:
southseact-3d
2026-02-07 20:32:41 +00:00
commit ed67b7741b
252 changed files with 99814 additions and 0 deletions

15
chat_v2/server.js Normal file
View File

@@ -0,0 +1,15 @@
// chat_v2: wrapper that starts the main chat/server.js file
// using robust path detection for both container (/opt/webchat) and local environments
const fs = require('fs');
const path = require('path');
// Container path: /opt/webchat/server.js
// Local path: ../chat/server.js
const containerPath = '/opt/webchat/server.js';
const localPath = path.join(__dirname, '../chat/server.js');
if (fs.existsSync(containerPath)) {
require(containerPath);
} else {
require(localPath);
}