Deployment on Netlify
Next.js is arguably the most popular full-stack and frontend framework, and there is a plethora of deployment options.
In this section, you will learn how to deploy your Next.js application on Netlify—one of the most popular web platforms for deployment, content orchestration, continuous integration, and much more.
In order to deploy your website on Netlify, you will need to deploy the FastAPI backend. If you haven’t already done so, please refer to Chapter 7, Building a Backend with FastAPI, on how to do that. Once you have the backend address (in your example, the URL of the deployed FastAPI application is https://chapter9backend2ed.onrender.com), it will be used as the API URL for the Next.js frontend.
In order to perform the deployment to Netlify, perform the following steps:
- Create a Netlify account: Log in with your GitHub account and create a free Netlify account, since Netlify will pick your code from the repository that...