Turborepo
Deploy one app from a Turborepo monorepo on wtree Cloud.
Stack summary
| Build type | Nixpacks (monorepo) |
| Port | 3000 |
| Output directory | Not needed |
Deploy
Create the application
Create an application with a Git source and set:
| Field | Value |
|---|---|
| Repository | Your repository URL |
| Branch | main |
| Build path | / |
| Build type | Nixpacks |
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
webwith the name of the app you deploy. Each variable uses it:NIXPACKS_TURBO_APP_NAMEselects the app, and the build and start commands filter on it.
