diff --git a/admin/server.js b/admin/server.js index c50ea8a..f595492 100644 --- a/admin/server.js +++ b/admin/server.js @@ -183,11 +183,12 @@ app.get('*', (req, res) => { }); app.listen(PORT, () => { + const publicUrl = ENV === 'production' ? 'https://snatchgGameAdmin.interno.com' : `http://localhost:${PORT}`; console.log(` 📊 SnatchGame Admin Dashboard 📱 Environment: ${ENV} -🌐 Server URL: http://localhost:${PORT} +🌐 Server URL: ${publicUrl} 🔗 Game Server: ${process.env.SERVER_URL} -📡 SSE Endpoint: http://localhost:${PORT}/api/sse +📡 SSE Endpoint: ${publicUrl}/api/sse `); }); \ No newline at end of file diff --git a/client/server.js b/client/server.js index c0c5576..a0d3a68 100644 --- a/client/server.js +++ b/client/server.js @@ -57,10 +57,11 @@ app.get('/api/config', (req, res) => { }); app.listen(PORT, () => { + const publicUrl = ENV === 'production' ? 'https://snatchGame.interno.com' : `http://localhost:${PORT}`; console.log(` 🎮 SnatchGame Client Server 📱 Environment: ${ENV} -🌐 Server URL: http://localhost:${PORT} +🌐 Server URL: ${publicUrl} 🔗 Game Server: ${process.env.SERVER_URL} `); }); \ No newline at end of file