Need Assistance?

support@tutorialshub.in

Getting Started with Next.js

Running Dev Server & Fast Refresh

ADVERTISEMENT
Next.js Free Lesson
5 min read
ADVERTISEMENT

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.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you