Deploy


Now


Now -- great pun, right? -- it's time to show your project to the world!

For easy, zero configuration deployment, you can use now. After you have downloaded and installed now's desktop application, you can deploy Next.js with a single command.

$ now

You will get a unique URL which you can then link via now alias to your custom domain.

Node.js Server


Next.js can be deployed to any hosting provider that supports Node.js. This is the approach you should take if you’re using a custom server.

Make sure your package.json has the build and start scripts:

next build builds the production application in the .next folder. After building, next start starts a Node.js server that supports hybrid pages, serving both statically generated and server-side rendered pages.

Last updated