Watching multiple apps at once
Useful for monorepos (turbo/nx/pnpm workspaces) where several dev servers run side by side — each app gets its own pane, sampled and restarted independently, so one app crashing or breaching its threshold doesn't disturb the others.
Config file
$nextdoctor dev --config nextdoctor.config.json
{
"threshold": 4096,
"apps": [
{ "id": "web", "cwd": "apps/web", "command": "npm run dev" },
{ "id": "admin", "cwd": "apps/admin", "command": "npm run dev", "threshold": 2048 }
]
}nextdoctor.config.json in the current directory is picked up automatically if --config isn't passed — see /docs/init for generating one interactively.
Or a quick one-off, no file needed
$nextdoctor dev --app "web=apps/web:npm run dev" --app "admin=apps/admin:npm run dev"