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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user