How to Set port in next.js November 29, 2022 by Tarik This work for me "scripts": { "dev": "next dev -p 8080", "start": "next start -p 8080", },