fix: Display correct public URLs in production logs
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 9s

- Admin shows https://snatchgGameAdmin.interno.com in production
- Client shows https://snatchGame.interno.com in production
- SSE endpoint shows correct public URL for browser connections
- Maintains localhost URLs for development environment
This commit is contained in:
2025-07-05 16:29:50 -06:00
parent 660bc3455e
commit 70cb8b5be1
2 changed files with 5 additions and 3 deletions

View File

@@ -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
`);
});