---
title: Import a repository
seo:
  title: "Import a repository from GitHub or GitLab"
description: Make a project from a repository on GitHub or GitLab, check its settings, and start the first deployment.
---

<Illustration name="project" app="/new" appLabel="New Project" />

## Import

1. **Open New Project**

    In the dashboard, click <AppLink to="/new">New Project</AppLink>. Choose
    GitHub or GitLab. If you did not connect it yet, see [GitHub and
    GitLab](/connect/git).

2. **Select the repository**

    Find the repository with the search field, then select it. Conic reads the
    repository and finds its apps.

3. **Set the root directory**

    If the repository has more than one app, select the folder of the app to
    deploy, for example `apps/web`. For a repository with one app, keep the
    root.

4. **Check the settings**

    Check the project name, the framework, the build command and the install
    command. Conic finds them for you. Change them only if your app needs it.
    See [Build settings](/projects/build-settings).

5. **Add environment variables**

    If your app needs API keys or other values, add them now. See [Environment
    variables](/projects/environment-variables).

6. **Deploy**

    Click **Deploy**. Conic starts the first production deployment from the
    default branch of the repository.

## If Conic cannot deploy the folder

Conic shows **Can't deploy this directory yet** when it finds no app that it can deploy in the folder. These are the usual causes:

- The folder is a Next.js app. Conic does not deploy Next.js. See [Frameworks](/projects/frameworks).
- The folder has no `package.json`. Select the folder of the app, not the root of the monorepo.
- The framework is not supported. See [Frameworks](/projects/frameworks).

## After the import

Each push to the production branch now deploys to production. Each push to a different branch deploys a preview. To change the repository of a project later, open the project **Settings** and use **Connected Git Repository**.
