fix: wire MigrateSetup repoUrl to githubRepoUrl for mirror flow

Made-with: Cursor
This commit is contained in:
2026-03-09 11:47:41 -07:00
parent 9c277fd8e3
commit 01dd9fda8e

View File

@@ -46,11 +46,12 @@ export function MigrateSetup({ workspace, onClose, onBack }: SetupProps) {
slug: name.toLowerCase().replace(/[^a-z0-9]+/g, "-"),
product: { name: name.trim() },
creationMode: "migration",
// Top-level fields the create route reads for the mirror flow
githubRepoUrl: repoUrl.trim() || undefined,
// Preserve extra metadata for future use
sourceData: {
repoUrl: repoUrl.trim() || undefined,
liveUrl: liveUrl.trim() || undefined,
hosting: hosting || undefined,
pat: pat.trim() || undefined,
},
}),
});