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

Monorepos

Deploy each app of a monorepo as its own project. A push rebuilds only the apps that it changes.

Conic deploys Turborepo monorepos and pnpm, npm, Yarn and Bun workspaces. You do not need Turborepo.

Root directory
  • acme/platform
  • apps
  • web
  • docs
  • packages
FrameworkAstroDetected

One project for each app

Each app of the monorepo is its own project, with its own Workers, previews, domains and logs.

Import the repository

Click New Project and select the repository. Conic lists the apps of the repository and finds the framework of each app.

Select the app

Set the Root Directory to the folder of the app, for example apps/web.

Do it again for each app

To deploy a second app, import the same repository again and select its folder, for example apps/docs.

Install runs at the root

Conic runs the install command at the root of the repository, so your lockfile and your workspace packages work as they do on your computer. Then it runs the build command in the folder of the app.

Only what changed rebuilds

When you push, Conic reads your workspace and finds the apps that the push changes. It builds only those apps. An app also rebuilds when the push changes a shared package that the app uses.

For example, a push that changes packages/ui rebuilds apps/web and apps/docs if both apps use packages/ui. A push that changes only apps/docs rebuilds only apps/docs.

A branch that changes two apps gets a preview of each app.

Was this page helpful?