next js start on different port code example
Example 1: nextjs change port
"scripts": {
"dev": "next -p 8080"
},
Example 2: run nextjs in separate port
npm run dev -- -p 3005
"scripts": {
"dev": "next -p 8080"
},
npm run dev -- -p 3005