Documentation
Next.js
Building your app

Building and deploying your Next.js app

Once you have made the necessary changes, you can compile and minify your code for production by running npm run build. To test the production-ready version of your app locally, you can run npm run start, this will launch a local server that allows you to preview your app in a production environment.


You can deploy your app on Vercel (opens in a new tab), or use any other services (opens in a new tab) recommended in the official documentation.