Answer the question
In order to leave comments, you need to log in
How to remove a port from a domain?
I have a Freenom domain, how can I switch to a domain without specifying a port?
Answer the question
In order to leave comments, you need to log in
If you really have EXPRESS.JS, then the code should contain approximately the following lines:
import express from 'express'
...
const app = express()
const PORT = process.env.PORT || 8080
...
app.listen(PORT, () => {
console.log('Server has been started on port ...')
})
app.listen(80, () => {
console.log('Server has been started on port ...')
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question