Update index.ts

This commit is contained in:
2024-03-18 21:24:49 +01:00
committed by GitHub
parent 473a2cba93
commit 691264da56

View File

@@ -257,7 +257,7 @@ app.get('/ping', (req, res) => {
res.send('Pong')
})
const port = process.env.PORT || 4000
const port = Number(process.env.PORT!) || 4000
app.listen(port, '0.0.0.0', () => {
console.log(`Server listening on [::]${port}`)
})