There are two workflows for adding a new Gatsby Cloud site:
- Clone a Starter
- Import from a Git Repository
In this lesson, we'll use the "Clone a Starter" flow. Note, cloning of starters is only supported for GitHub. If you use GitLab or BitBucket, you have to follow the Create a Site from a Repository lesson instead.
1. Choose Your Starter Template
From your Gatsby Cloud Dashboard, click the Add Site button.
On the right-hand side, click on the card labeled "Gatsby Starter Blog".
2. Configure Your Repository
The first time you set up a Gatsby Cloud site, you will need to connect your Gatsby account to GitHub by clicking on the "GitHub" icon in the Create a Git repository card.
Next, a pop up window should appear and prompt you to install the Gatsby Cloud app to your GitHub personal account. Click Install.
After the GitHub app is installed, you will return to Gatsby Cloud. Here you can select a different GitHub organization to host the repository under as well as change the name of the repository that will be created if you prefer. Then click Next to create the site.
3. Set-up Summary
After the site is created, you should see a success message like the one below on the Summary card. You may need to scroll down if you are unable to see the card with the link to the GitHub repository.
Next, click View your new site, and you will be taken to the main tab of the Site Overview page for your new site.
Once your site is done building, you can view the site in two places:
Private Build URL
Use the build URL to preview the deployed site. This URL is not indexed and is only accessible via direct link.
Public Default Domain
Use your Gatsby Hosting provided default domain to access the public deployment of your site. Gatsby Hosting is turned on by default, and the default domain is listed under Site Settings Hosting.