Hosting a Next.js site with AWS Elastic Beanstalk

I thought I’d share some learnings about how to host a Next.js site with AWS Elastic Beanstalk. This is a minimum configuration to get a basic site up and running. Getting started In this example, we are going to create a new Next.js project, but the process should apply to existing projects too. The following command creates a folder called ‘my-app’ and creates a new Next.js app npx…