One application is running on port 3000 and I want to run another application on a different port from the default port, which is 3000. How do I change this in React Next.js? My package.json currently contains: "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "next", "build": "next build", "start": "next start" }, And the CLI command that I use to start dev is npm run dev .
Originally asked by Sohail Ahmad on Stack Exchange (stackoverflow) (CC BY-SA 4.0).