Refactor logging functions in broadcast.js to create logs directory if it doesn't exist. Update setupBroadcast function to pass __dirname for correct path resolution. This enhances log management and ensures logs are stored in the appropriate directory.

This commit is contained in:
Torsten Schulz (local)
2025-12-05 10:51:34 +01:00
parent 351129dace
commit 152d13b1f6
2 changed files with 19 additions and 9 deletions

View File

@@ -96,7 +96,7 @@ setupSEORoutes(app, __dirname);
setupRoutes(app, __dirname);
// Socket.IO-Handling
setupBroadcast(io);
setupBroadcast(io, __dirname);
// In Production: Serviere auch die gebauten Client-Dateien
// SPA-Fallback muss nach allen anderen Routen stehen