run dev nextjs project on another port code example Example: how to run nextjs in another port yarn dev -p 3005