diff --git a/components/project-creation/MigrateSetup.tsx b/components/project-creation/MigrateSetup.tsx index 5d8422e..21ee666 100644 --- a/components/project-creation/MigrateSetup.tsx +++ b/components/project-creation/MigrateSetup.tsx @@ -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, }, }), });