title: How to use AWS with Next.js?
body: <p>I am looking for some advices, I am using Next.js to serve static pages that can be updated frequently, my app uses all kind of rendering : SSG, SSR and iSSG (new Incremental Static Site Generation feature).</p>
  
  <p>Exemple of AWS architecture I thought:</p>
  
  <ul>
  <li>EC2 to deploy a node.js server running next.js app</li>
  <li>(if it is possible) Store/update static pages generated by Next.js
  SSR/iSSG in a S3 bucket</li>
  <li>Cloudfront to cache pages (using either EC2 or S3 bucket if it is
  possible)</li>
  </ul>
  
  <p>Do you know what is the best AWS architecture I could use according to my needs?</p>
  
  <p>Edit: Maybe AWS Elastic Beanstalk is the solution, I am taking a look.</p>