Posted On: May 18, 2021
AWS Amplify Hosting now supports deploying and hosting server-side rendered (SSR) apps built with the Next.js framework with zero configuration. Frontend developers can now leverage all of Amplify Hosting’s CI/CD and hosting capabilities for deploying SSR apps. Next.js is a React framework that combines build-time static site generation (SSG) and dynamic server-side rendering (SSR) to enable developers to build performant, SEO-friendly web apps. Amplify Hosting supports all Next.js features in version 9.x.x including SSR API routes, dynamic pages, and automatic pre-rendering.
Next.js apps can be deployed using the Amplify console with zero configuration. To get started, simply connect a branch from your Next.js Git repository. Amplify automatically detects the Next.js build settings and deploys your branch and makes it available at https://branchname.amplifyapp.com. Next.js developers can leverage all of Amplify’s build and hosting capabilities such as PR previews, easy custom domains, pattern-based branch deployments, password protection, redirects, and custom headers. In addition, developers can add an app backend (e.g. authentication, data) using the Amplify CLI or Admin UI and then integrate it into their apps using the Amplify JavaScript client library. Amplify JavaScript seamlessly manages the session of users across both the client (browser) and the server, enabling developers to make authentication calls and authenticated API requests in SSR dynamic pages and API routes.
Amplify Hosting is available in 16 AWS Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), US West (N. California), Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Sydney), Canada (Central), EU (Frankfurt), EU (Ireland), EU (London), Europe (Paris), Europe (Stockholm), and South America (São Paulo).
To get started visit our launch blog.