When you run npm run dev, Next.js starts a local development server at http://localhost:3000. As you edit and save any component, Fast Refresh updates your browser in a fraction of a second—without losing your component state or form inputs.
If you want to run Next.js on a different port (for example, if port 3000 is busy), simply pass -p 3001.