diff --git a/api/src/server.ts b/api/src/server.ts index 168a773..27fe863 100644 --- a/api/src/server.ts +++ b/api/src/server.ts @@ -3,8 +3,8 @@ import dotenv from 'dotenv'; dotenv.config(); -const PORT = process.env.PORT || 5000; +const PORT = parseInt(process.env.PORT || '5000', 10); -app.listen(PORT, () => { +app.listen(PORT, '0.0.0.0', () => { console.log(`API running on port ${PORT}`); });