title: How to Set port in next.js
body: <p>one application is running on port 3000 and I want to run another application on a different port of the default port. How I change this in React Next.js.
  My <strong>package.js</strong> script is </p>
  
  <pre><code>"scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
      "dev": "next",
      "build": "next build",
      "start": "next start"
    },
  </code></pre>
  
  <p>and start script command is
  <code>npm run dev</code></p>