Answers for "how to set port in nextjs"

42

set port nextjs

"scripts": {
    "dev": "next dev -p 8080", // for dev 
    "start": "next start -p 8080" // for prod
},
Posted by: Guest on June-25-2021
0

run nextjs in separate port

npm run dev -- -p 3005
Posted by: Guest on May-02-2021
0

change next js default port

"dev": "next dev -p 3001"
Posted by: Guest on June-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language