Skip to content

Commit

Permalink
fix: server listen
Browse files Browse the repository at this point in the history
  • Loading branch information
reinaldocosta committed Apr 2, 2024
1 parent 5c9efd7 commit 980848a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createServer } from 'node:http'

const unused = 'It will generate an PR annotation'
const host = 'localhost'
const port = 8080

Expand All @@ -9,6 +8,6 @@ const server = createServer((req, res) => {
res.end()
})

server.listen(port, host, () => {
console.log(`Server is running on http://${host}:${port}`)
server.listen(port, () => {
console.log(`Server is running on port :${port}`)
})

0 comments on commit 980848a

Please sign in to comment.