wtree Cloud

Turborepo

Deploy one app from a Turborepo monorepo on wtree Cloud.

Stack summary

Build typeNixpacks (monorepo)
Port3000
Output directoryNot needed

Deploy

Create the application

Create an application with a Git source and set:

FieldValue
RepositoryYour repository URL
Branchmain
Build path/
Build typeNixpacks

Add the Turborepo variables

Open Settings › Environment variables and add:

NIXPACKS_TURBO_APP_NAME="web"
NIXPACKS_BUILD_CMD="turbo run build --filter=web"
NIXPACKS_START_CMD="turbo run start --filter=web"

Deploy

Click Deploy.

Generate a domain

Open Settings › Domains, click Add domain, then click the dice icon next to Host to generate a domain. Set Container port to 3000 and open the generated domain.

Config notes

  • Keep the build path at / so Turborepo sees the whole workspace.
  • Replace web with the name of the app you deploy. Each variable uses it: NIXPACKS_TURBO_APP_NAME selects the app, and the build and start commands filter on it.

On this page