diff --git a/app/(app)/projects/[id]/stats/auto-install.tsx b/app/(app)/projects/[id]/stats/auto-install.tsx index 2327056f..8ac5719e 100644 --- a/app/(app)/projects/[id]/stats/auto-install.tsx +++ b/app/(app)/projects/[id]/stats/auto-install.tsx @@ -38,6 +38,7 @@ export function AutoInstall({ }: AutoInstallProps) { const [open, setOpen] = useState(false); const [q, setQ] = useState(""); + const [rootPath, setRootPath] = useState(""); const [submitting, setSubmitting] = useState(null); const [result, setResult] = useState<{ repo: string; result: InstallResult } | null>(null); const [error, setError] = useState(null); @@ -77,6 +78,7 @@ export function AutoInstall({ owner, repo: name, installation_id: repo.installation_id, + root_path: rootPath.trim() || undefined, }), }, ); @@ -172,6 +174,23 @@ export function AutoInstall({ )} +
+ + Subdirectory (optional, for monorepos) + + setRootPath(e.target.value)} + placeholder="apps/web" + className="mt-2 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-sm" + /> +

+ Leave blank to auto-detect. Set if your site lives in a + monorepo subdir like apps/web. +

+
+