Skip to content
Docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Import a repository

Make a project from a repository on GitHub or GitLab, check its settings, and start the first deployment.

Root directory
  • acme/platform
  • apps
  • web
  • docs
  • packages
FrameworkAstroDetected
Open New Project

Import

Open New Project

In the dashboard, click New Project. Choose GitHub or GitLab. If you did not connect it yet, see GitHub and GitLab.

Select the repository

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

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.

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.

Add environment variables

If your app needs API keys or other values, add them now. See Environment variables.

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

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.

Was this page helpful?