---
title: "Launch Quick Start Guide with Astro"
description: "Learn how to clone and deploy an Astro Starter project using Contentstack Launch and GitHub by following the instructions in our Quick Start Guide."
url: "https://www.contentstack.com/docs/launch/quick-start-astro"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-07-28"
---

# Launch Quick Start Guide with Astro

The fastest way to get started with Launch is to clone and deploy a [sample Astro Starter project](https://github.com/contentstack-launch-examples/astro-example-starter). With Launch, create a project by importing your website code from GitHub.

## Prerequisites

*   [Contentstack account](https://www.contentstack.com/login/)
*   Launch-enabled Organization with [Owner or Admin](/docs/administration/about-administration-roles) permissions
*   [GitHub account](https://github.com/login)

## What You Will Learn

*   How to import a GitHub repository into Launch.
    
*   How to configure build and output settings for an Astro project.
    
*   How to deploy Astro in server-side (SSR) or client-side (CSR) rendering mode.
    
*   How to deploy the project and preview the live site.
    

## Steps for Execution

Follow the steps given below to deploy your first Launch project using GitHub:

1.  [Log in to Contentstack](https://www.contentstack.com/login/) and click the **Launch** icon from the dashboard, as shown below:![Launch\_2026\_Landing\_Page.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt93cb437e9760884e/69647cf52269f8000829f814/Launch_2026_Landing_Page.png)  
    Alternatively, go to the **App Switcher** in the top panel and click the **Launch** icon.![AppSwitcher\_Launch.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt5c5085453e429d79/69ce4df3267d5e026d79f448/AppSwitcher_Launch.png)
2.  On the **Launch Projects** screen, click the **\+ New Project** button to initiate the project creation process.![Launch\_Projects\_Landing\_Page\_2026.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt21093a02592b00ef/69afdb45afcf450008d243b2/Launch_Projects_Landing_Page_2026.png)
3.  From the **Create New Project** modal, click **Import from a Git Repository**.  
    ![Launch\_Create\_Proj\_Git\_File.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt09bbe7fc07e8c9a5/660bba5d1b5a585bbdadd2cc/Launch_Create_Proj_Git_File.png)
    
    **Note:** You can also choose to [upload a .zip file to import a project](/docs/launch/import-project-using-file-upload/).
    
4.  Click **GitHub**.![Launch-GitHub-ConnectAccount](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt2e0658a692b0e60b/6435370bcbf631109cafab84/Launch-GitHub-ConnectAccount.png)
    
    **Additional Resource:** You can also import a project using Bitbucket Cloud. Follow the steps in the [Create a Project Using Bitbucket Cloud](/docs/launch/import-a-project-using-bitbucket-cloud) guide to proceed.
    
    A Sign in to GitHub screen pops up. Enter your credentials and log in to your GitHub account.
    
    **Note:** We have assumed that you have a GitHub account and your website code stored in the repository.
    
5.  Enter your credentials and log in.![Launch-Sign-In](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt27acfd69a831865a/64365e5a74d71410bfac5229/Launch-Sign-In.png)
6.  In the **Repository access** section, select **All repositories**.  
    
    **Note:** If you want to choose specific repositories, select the **Only select repositories** option and choose the required repository.
    
    ![Launch\_New\_Repository\_Access\_SS](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blte4821228ea208a34/645b412eaf653fc45cd4764d/Launch_New_Repository_Access_SS.png)
7.  Click the **Save** button.  
    
    **Note:** If you are accessing GitHub through Contentstack for the first time, you must authorize Contentstack by clicking the **Install & Authorize** button after selecting **All repositories**.
    
    ![Launch-GitHub-Install\_Authorize](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt40493387afda42b0/645cde3e0227879e622d71b4/Launch-GitHub-Install_Authorize.png)
    
    You will be redirected to the Launch app.
    
8.  In the **Create New Project** modal, add the following details:
    
    1.  **Repository** (Mandatory): Select the Git repository. In our example, we have selected the **Astro** project repository.
        
        **Note:** When you select the repo, the **Build and Output Settings** section gets auto-populated.
        
    2.  **Git Branch** (Mandatory): By default, master or main is selected as the branch. You can choose another branch from the dropdown.
    3.  **Project Name** (Mandatory): Gets auto-populated on selecting the repository. You can edit it as per your requirement.
    4.  **Environment Name** (Mandatory): Enter the name of the environment.![Launch\_Astro\_CreateProjModal1.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt6a7f30c26d17a221/69ce4de3bbaed666a2320715/Launch_Astro_CreateProjModal1.png)
    5.  **Build and Output Settings** (Mandatory): The fields in this section auto-populates based on the Astro framework, as discussed above. Update the **Output Directory** to ./dist
        
        Select a response mode:
        
        *   **Streaming**: Delivers response chunks in real time as they are generated.
        *   **Buffered**: Displays output only after the entire response has been generated.
        
        **Note:** Buffered is selected by default.
        
        ![Launch\_Astro\_QSGuide\_BuildOutput.png](https://assets.contentstack.io/spaces/am51d76353d996c1fe/assets/amd3cb01bc03dd5f5c/b5793768cc84db0fbb1a42ee/Launch_Astro_QSGuide_BuildOutput.png?locale=en-us)
        
        **Note:**
        
        *   In the Server Command field, enter npm run start to deploy Astro in server-side rendered (SSR) mode.
        *   Leaving the Server Command field blank will deploy the framework as CSR (Client-Side Rendered).
        
    6.  **Environment Variables** (Optional):
        
        1.  Enter the key and value of one or more environment variables.
        2.  You can also add the key-value pairs in bulk in the **Bulk Edit** section.
        
        ```
        ENVIRONMENT=Production
        SAMPLE_KEY=SAMPLE_VALUE
        ```
        
        ![Launch\_Astro\_CreateProjModal3.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt20c36ca1d96d3ab5/69ce4de3a5dba6bdf3c29ba9/Launch_Astro_CreateProjModal3.png)
        
        **Note:** Click **Back** to revert the changes and re-enter details.
        
9.  Once ready, click **Deploy** to save and deploy the project.
    
    As soon as the deployment starts, the system displays the **Deploying** status as shown in the following screenshot:
    
    ![Launch\_Astro\_Deploying\_CancelFeature.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt4e20fa13b4f6cd41/69dc7ac21654a08b2a4f7669/Launch_Astro_Deploying_CancelFeature.png)

Upon successful deployment, you will see the following screen. You can preview the deployed website by clicking the icon next to the URL in the **Domains** section:

![Launch\_Astro\_Live.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt5a121e02e644bfc9/69ce4de398909006a26b5e5c/Launch_Astro_Live.png)

If you want to deploy the changes from any other commits, you can click the **Redeploy** button and choose the required commit.

![Launch\_Astro\_Redeploy.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltabde42df58be5340/69ce4de38e8869274836a4b2/Launch_Astro_Redeploy.png)

**Note:** View the log details of the current deployment in the **Logs** section.

![Launch\_Astro\_Logs.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt2a8eacf7cb6f1969/69ce4de3b4aabb2906a1a86c/Launch_Astro_Logs.png)