Deploying to Vercel
This guide walks through how to deploy and host your next Gatsby project to Vercel.
Vercel is a cloud platform that enables developers to host Jamstack websites and web services that deploy instantly, scale automatically, and requires no supervision, all with zero configuration. They provide a global edge network, SSL encryption, asset compression, cache invalidation, and more.
To deploy your Gatsby project with a Vercel for Git Integration, make sure it has been pushed to a Git repository.
After your project has been imported, all subsequent pushes to branches will generate Preview Deployments, and all changes made to the Production Branch (commonly “master” or “main”) will result in a Production Deployment.
Once deployed, you will get a URL to see your app live, such as the following: https://gatsby-example.vercel.app/.
If you want to use a Custom Domain with your Vercel deployment, you can Add or Transfer in your domain via your Vercel account Domain settings.
To add your domain to your project, navigate to your Project from the Vercel Dashboard. Once you have selected your project, click on the “Settings” tab, then select the Domains menu item. From your projects Domain page, enter the domain you wish to add to your project.
Once the domain as been added, you will be presented with different methods for configuring it.
You can deploy a fresh Gatsby project, with a Git repository set up for you, with the following Deploy Button: