define the custom port in next.js code example Example: how to run nextjs in another port yarn dev -p 3005