This article's content
Next CLI
// Start the application in development mode (hot-code reloading, error reporting, etc)
next dev
next dev mydir -p 8080

// build application in current directory's .next folder
next build
next build mydir 

// start in production mode (must run 'next build' before)
next start
next start mydir -p 8080

// Export the application for production deployment
next export

About Author

Mathias Bothe To my job profile

I am Mathias, born 40 years ago in Heidelberg, Germany. Today I am living in Munich and Stockholm. I am a passionate IT freelancer with more than 16 years experience in programming, especially in developing web based applications for companies that range from small startups to the big players out there. I am founder of, creator of the security service platform BosyProtect© and initiator of several other software projects.