diff --git a/server/src/index.ts b/server/src/index.ts index 4d8ac42..96027a9 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -181,4 +181,17 @@ app.get("/config", (req, res) => { }); const PORT = process.env.PORT || 3000; -app.listen(PORT, () => {}); + +try { + const server = app.listen(PORT); + + server.on('listening', () => { + const addr = server.address(); + const port = typeof addr === 'string' ? addr : addr?.port; + console.log(`Proxy server listening on port ${port}`); + }); + +} catch (error) { + console.error('Failed to start server:', error); + process.exit(1); +}