shell-mirror 1.5.27 → 1.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +9 -0
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -53,6 +53,15 @@ logToFile(`🔧 Local environment: ${isLocalEnvironment ? 'YES' : 'NO'}`);
|
|
|
53
53
|
// --- Static Files and Routes ---
|
|
54
54
|
app.use(express.static('public'));
|
|
55
55
|
|
|
56
|
+
// Health check endpoint for Heroku
|
|
57
|
+
app.get('/health', (req, res) => {
|
|
58
|
+
res.json({
|
|
59
|
+
status: 'ok',
|
|
60
|
+
service: 'Shell Mirror WebSocket Server',
|
|
61
|
+
timestamp: new Date().toISOString()
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
56
65
|
// Inject environment info into static files
|
|
57
66
|
app.get('/', (req, res) => {
|
|
58
67
|
// LOCAL_TESTING_ONLY: Add local testing indicator
|