The Next JS Blueprint will build and deploy your Next JS project to your AWS account. Server side routes will be hosted on AWS Lambda + API Gateway, static asset routes will be hosted in S3. All of this will sit behind a cloudfront distribution for speed.

Getting Started

Deploying your Next Js project is easy, just follow the steps below.

1

Enable Standalone mode in your next.config.js file

This is required. More on standalone mode here.

module.exports = {
    output: 'standalone',
}
2

Create a Next JS stack in Deplify

  • Hit the Add a Stack button in the environment view.
  • Choose the Next JS blueprint.
  • Build settings are entered by default, optionally make changes if you need them.
  • Click Create Stack
3

All Done

Your project will be deployed in around 10 minutes.

Note Subsequent deployments will be much faster. The first deployment takes around 10 minutes since a cloudfront distribution is getting created.