Contentstack LogoContentstack Logo

Launch Quick Start Guide with Astro

The fastest way to get started with Launch is to clone and deploy a sample Astro Starter project. With Launch, create a project by importing your website code from GitHub.

Prerequisites

  1. Contentstack account
  2. Access to Launch for your organization
  3. GitHub account

Steps for Execution

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

Note: Only the Organization Admin/Owner has the right to create projects in a stack for Launch.

  1. Log in to Contentstack and click the Launch icon from the dashboard, as shown below: Launch_2026_Landing_Page.png
    Alternatively, go to the App Switcher in the top panel and click the Launch icon.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
  3. From the Create New Project modal, click Import from a Git Repository.
    Launch_Create_Proj_Git_File.png

    Note: You can also choose to upload a .zip file to import a project.

  4. Click GitHub.Launch-GitHub-ConnectAccount

    Additional Resource: You can also import a project using Bitbucket Cloud. Follow the steps in the Create 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
  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
  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

    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
    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 Launch_Astro_CreateProjModal2.png
      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

      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.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

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

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

Launch_Astro_Logs.png
Was this article helpful?
^