next run on different port code example
Example 1: nextjs change port
"scripts": {
"dev": "next -p 8080"
},
Example 2: how to run nextjs in another port
yarn dev -p 3005
Example 3: run next on differnet port
// Add this to your package.json
"dev": "next dev -p 3005"