Gatsby is a popular front-end framework that helps you create static apps and websites with React.
Firstly, set up a Gatsby project by installing Gatsby CLI globally from your terminal:
npm i -g gatsby-cli
Then you can run the following command to create a Gatsby project locally:
gatsby new my-gatsby-project
Next, move into the directory from your terminal with
cd my-gatsby-project. You can see your new project in a local development environment by using the
npm develop command, set in the
package.json by Gatsby CLI.
To deploy your Gatsby app with Vercel for Git, make sure it has been pushed to a Git repository.
Import the project into Vercel using your Git provider of choice:
After your project has been imported, all subsequent pushes to branches will generate Preview Deployments, and all changes made to the Production Branch (commonly "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.now-examples.vercel.app
Set up a Gatsby app with a few clicks using the Deploy button, and create a Git repository for it in the process for automatic deployments for your updates.