Skip to content

How to Deploy a Gatsby Site with Vercel

Create your Gatsby app and deploy it with Vercel.

This guide will show you how to deploy a Gatsby site and get your domain set up.

React is a JavaScript library for building user interfaces. Gatsby is a front-end framework that helps you create static sites with React. There are multiple ways to build a React site, including:

Vercel is a platform for deploying the fastest Gatsby sites. You can deploy your site with zero configuration to the best frontend infrastructure.

  • Develop: Build Gatsby sites that connect to your favorite APIs, databases, and content management systems.
  • Preview: Integrate with any GitHub, GitLab, or Bitbucket repository for instant continuous deployment.
  • Ship: Deploy your site to every edge node worldwide for the fastest Gatsby sites. Static files, Serverless and Edge Functions, and more.
  • Monitor: Measure Core Web Vitals from actual devices your visitors are using with Vercel Analytics for Gatsby.

Vercel has integrations for GitHub, GitLab, and Bitbucket to enable CI/CD for your Gatsby site with zero configuration. Then, you can run automated tests for performance and reliability on every push. Pull and merge requests are deployed instantly to a unique URL, accessible to your entire team.

After deploying, your new Gatsby site will automatically be assigned a .vercel.app suffixed domain. You can then add a Custom Domain on your choice, either from a third-party or purchased through Vercel.

  1. Install the Vercel CLI and run vercel to deploy.
  2. Vercel will detect that you are using Gatsby and will enable the correct settings for your deployment.
  3. Your application is deployed! (e.g. gatsby.vercel.app)
  1. Push your code to your git repository (GitHub, GitLab, BitBucket).
  2. Import your Gatsby project into Vercel.
  3. Vercel will detect that you are using Gatsby and will enable the correct settings for your deployment.
  4. Your application is deployed! (e.g. gatsby.vercel.app)


Written By
Written by leerobleerob