mirror of
https://github.com/sern-handler/automata
synced 2026-06-06 01:16:51 +00:00
Update index.ts
This commit is contained in:
@@ -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}`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user